473,800 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't use some javascript from a .js file...

OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello");
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the second
statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Wells
Ma***********@F irstByte.net
Jun 27 '08 #1
9 2222
OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello");
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the second
statement fails.
What do you mean 'fails'? How does it fail? Can you post a link?

-Darrel
Jun 27 '08 #2
Hi,

That's because LBFacilities controls exists on aspx page, and on separate js
file it (<%=... %>) doesn't get through ASP.NET's processing and therefore
is returned literally what's on the js file

e.g js file contains *literally*

....
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
....

If you use it that way, you need to set the LBFacilities somehow as argument
or on global js variable on the page which the js file references (makes js
though reliable on the existence of the control)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8******** *************** *******@comcast .com...
OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello");
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the second
statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Wells
Ma***********@F irstByte.net

Jun 27 '08 #3
Teemu is right.
To put it another way, the .js file is run entirely on the client side by
the browser. The browser doesn't know how to interpret the server side
script you have inserted in your second alert statement.
("<%=LBFaciliti es.ClientID%>")
Server script like that only works in an ASPX page because that is processed
by the server before it is sent to the browser.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
http://iPhonePlaza.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8******** *************** *******@comcast .com...
OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello");
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the second
statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Wells
Ma***********@F irstByte.net
Jun 27 '08 #4
so how do I do this? I tried putting the variable at the top of the .js
dile, at the top of the aspx file and using registerclients criptblock.

Any suggestions?

Thanks.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

That's because LBFacilities controls exists on aspx page, and on separate
js file it (<%=... %>) doesn't get through ASP.NET's processing and
therefore is returned literally what's on the js file

e.g js file contains *literally*

...
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
...

If you use it that way, you need to set the LBFacilities somehow as
argument or on global js variable on the page which the js file references
(makes js though reliable on the existence of the control)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8******** *************** *******@comcast .com...
>OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello") ;
alert(document .getElementById ("<%=LBFaciliti es.ClientID%>") .options.length );
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the
second statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Well s
Ma***********@F irstByte.net


Jun 27 '08 #5
For example:

Have this on your page:

var lb = document.getEle mentById('<%=LB Facilities.Clie ntID%>');

And following in your js file (which I suggest that you registrer with
Page.ClientScri pt.RegisterStar tupScript so that setting the variable would
be *before* the script using the variable in page source.

function btnFirst_Click( )
{
alert("Hello");
alert(lb.option s.length);
return false;
}
</script>

If one thinks a bit further, say you have a large client-side library, it
would be wiser to use registration mechanism.

For example, your library would contain (e.g the js)

var lb = null;

function registerLb(lbTo Register)
{
lb = lbToregister;
}

And again your page would use:

<script>registe rLb(document.ge tElementById('< %=LBFacilities. ClientID%>'));</script>

somewhere. And library would use it:

function btnFirst_Click( )
{
alert("Hello");
if(lb != null)
alert(lb.option s.length);
return false;
}

or something like that. Of course it probably isn't that easy if you think
scenarios that multiple controls etc needs to be registered(when you'd
probably have array of them instead of one variable). On the other hand,
this was quite simple case when just the variable would work just fine.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:7f******** *************** *******@comcast .com...
so how do I do this? I tried putting the variable at the top of the .js
dile, at the top of the aspx file and using registerclients criptblock.

Any suggestions?

Thanks.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
>Hi,

That's because LBFacilities controls exists on aspx page, and on separate
js file it (<%=... %>) doesn't get through ASP.NET's processing and
therefore is returned literally what's on the js file

e.g js file contains *literally*

...
alert(document .getElementById ("<%=LBFaciliti es.ClientID%>") .options.length );
...

If you use it that way, you need to set the LBFacilities somehow as
argument or on global js variable on the page which the js file
references (makes js though reliable on the existence of the control)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8******* *************** ********@comcas t.com...
>>OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello" );
alert(documen t.getElementByI d("<%=LBFacilit ies.ClientID%>" ).options.lengt h);
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the
second statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Wel ls
Ma***********@F irstByte.net



Jun 27 '08 #6
I'm afraid this didn't work. I put this at the top of the aspx page:

<script type="text/javascript" >

var LB = document.getEle mentById("<% = LBFacilities.Cl ientID %>");

</script>

....which seemed to achieve the desired effect because this is what was in
the page source:

<script type="text/javascript" >
var LB =
document.getEle mentById("ctl00 _ContentPlaceHo lder1_LBFacilit ies");
</script>

but the code still only does the first alert and fails on the second.

Like I said before, the code works if it's all in the aspx page. What do I
need to do to get it to work in the .js file? Using the RegisertLB didn't
work either.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:er******** ******@TK2MSFTN GP02.phx.gbl...
For example:

Have this on your page:

var lb = document.getEle mentById('<%=LB Facilities.Clie ntID%>');

And following in your js file (which I suggest that you registrer with
Page.ClientScri pt.RegisterStar tupScript so that setting the variable would
be *before* the script using the variable in page source.

function btnFirst_Click( )
{
alert("Hello");
alert(lb.option s.length);
return false;
}
</script>

If one thinks a bit further, say you have a large client-side library, it
would be wiser to use registration mechanism.

For example, your library would contain (e.g the js)

var lb = null;

function registerLb(lbTo Register)
{
lb = lbToregister;
}

And again your page would use:

<script>registe rLb(document.ge tElementById('< %=LBFacilities. ClientID%>'));</script>

somewhere. And library would use it:

function btnFirst_Click( )
{
alert("Hello");
if(lb != null)
alert(lb.option s.length);
return false;
}

or something like that. Of course it probably isn't that easy if you think
scenarios that multiple controls etc needs to be registered(when you'd
probably have array of them instead of one variable). On the other hand,
this was quite simple case when just the variable would work just fine.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:7f******** *************** *******@comcast .com...
>so how do I do this? I tried putting the variable at the top of the .js
dile, at the top of the aspx file and using registerclients criptblock.

Any suggestions?

Thanks.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ov******* *******@TK2MSFT NGP03.phx.gbl.. .
>>Hi,

That's because LBFacilities controls exists on aspx page, and on
separate js file it (<%=... %>) doesn't get through ASP.NET's processing
and therefore is returned literally what's on the js file

e.g js file contains *literally*

...
alert(documen t.getElementByI d("<%=LBFacilit ies.ClientID%>" ).options.lengt h);
...

If you use it that way, you need to set the LBFacilities somehow as
argument or on global js variable on the page which the js file
references (makes js though reliable on the existence of the control)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8****** *************** *********@comca st.com...
OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello ");
alert(docume nt.getElementBy Id("<%=LBFacili ties.ClientID%> ").options.leng th);
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the
second statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Well s
Ma***********@F irstByte.net



Jun 27 '08 #7
Can you show the code you register the call with?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:rv******** *************** *******@comcast .com...
I'm afraid this didn't work. I put this at the top of the aspx page:

<script type="text/javascript" >

var LB = document.getEle mentById("<% = LBFacilities.Cl ientID %>");

</script>

...which seemed to achieve the desired effect because this is what was in
the page source:

<script type="text/javascript" >
var LB =
document.getEle mentById("ctl00 _ContentPlaceHo lder1_LBFacilit ies");
</script>

but the code still only does the first alert and fails on the second.

Like I said before, the code works if it's all in the aspx page. What do
I need to do to get it to work in the .js file? Using the RegisertLB
didn't work either.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:er******** ******@TK2MSFTN GP02.phx.gbl...
>For example:

Have this on your page:

var lb = document.getEle mentById('<%=LB Facilities.Clie ntID%>');

And following in your js file (which I suggest that you registrer with
Page.ClientScr ipt.RegisterSta rtupScript so that setting the variable
would be *before* the script using the variable in page source.

function btnFirst_Click( )
{
alert("Hello") ;
alert(lb.optio ns.length);
return false;
}
</script>

If one thinks a bit further, say you have a large client-side library, it
would be wiser to use registration mechanism.

For example, your library would contain (e.g the js)

var lb = null;

function registerLb(lbTo Register)
{
lb = lbToregister;
}

And again your page would use:

<script>regist erLb(document.g etElementById(' <%=LBFacilities .ClientID%>')); </script>

somewhere. And library would use it:

function btnFirst_Click( )
{
alert("Hello") ;
if(lb != null)
alert(lb.option s.length);
return false;
}

or something like that. Of course it probably isn't that easy if you
think scenarios that multiple controls etc needs to be registered(when
you'd probably have array of them instead of one variable). On the other
hand, this was quite simple case when just the variable would work just
fine.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:7f******* *************** ********@comcas t.com...
>>so how do I do this? I tried putting the variable at the top of the .js
dile, at the top of the aspx file and using registerclients criptblock.

Any suggestions?

Thanks.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ov****** ********@TK2MSF TNGP03.phx.gbl. ..
Hi,

That's because LBFacilities controls exists on aspx page, and on
separate js file it (<%=... %>) doesn't get through ASP.NET's
processing and therefore is returned literally what's on the js file

e.g js file contains *literally*

...
alert(docume nt.getElementBy Id("<%=LBFacili ties.ClientID%> ").options.leng th);
...

If you use it that way, you need to set the LBFacilities somehow as
argument or on global js variable on the page which the js file
references (makes js though reliable on the existence of the control)
--
Teemu Keiski
AspInsider , ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8***** *************** **********@comc ast.com...
OK, I've narrowed down the problem. This works when in the aspx page
>
<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hell o");
alert(docum ent.getElementB yId("<%=LBFacil ities.ClientID% >").options.len gth);
return false;
}
</script>
>
But when I put this in a .js file, I get the first "Hello", but the
second statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>
>
both on top and at the bottom of the aspx page. No luck.
>
How do I get this to work from a .js file?
>
Thanks.
>
--
Matthew.Wel ls
Ma***********@F irstByte.net
>




Jun 27 '08 #8
I've simplified evetything into a small project:

Here's default.aspx

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt.aspx.cs"
Inherits="_Defa ult" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
<script type="text/javascript">
var LB = document.getEle mentById("<%=LB Facilities.Clie ntID%>");
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="LBFacilitie s" runat="server"
CausesValidatio n="True"
DataTextField=" FacName" DataValueField= "FacID"
EnableViewState ="False"
Height="82px" Width="108px"></asp:ListBox><br />
<asp:Button ID="btnFirst" runat="server" Text="btnFirst" />
</div>
</form>
</body>
</html>

Here's MyTest.js

function btnFirst_Click( )
{
alert("Hello");
alert(LB.option s.length);
//alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}

....and here's default.aspx.cs

using System;
public partial class _Default : System.Web.UI.P age
{
protected void Page_Load(objec t sender, EventArgs e)
{
Page.RegisterSt artupScript("My Script",
"<script type=\"text/javascript\"
src=\"MyTest.js \" >\n" +
"</script>\n\n");
if (!this.IsPostBa ck)
{
btnFirst.OnClie ntClick = "return btnFirst_Click( )";
LBFacilities.It ems.Add("Red");
LBFacilities.It ems.Add("Green" );
LBFacilities.It ems.Add("Blue") ;
}
}
}

I've played with different variations on setting the LB variable including
doing it from the .cs - RegisterClientS cript, on page_init, Load and
prerender. The basic problem seems to be that once the javascriopt is moved
to a separate file, it can't reference the html controls anymore -
getElementByID stops working.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ot******** ******@TK2MSFTN GP02.phx.gbl...
Can you show the code you register the call with?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:rv******** *************** *******@comcast .com...
>I'm afraid this didn't work. I put this at the top of the aspx page:

<script type="text/javascript" >

var LB = document.getEle mentById("<% = LBFacilities.Cl ientID %>");

</script>

...which seemed to achieve the desired effect because this is what was in
the page source:

<script type="text/javascript" >
var LB =
document.getEl ementById("ctl0 0_ContentPlaceH older1_LBFacili ties");
</script>

but the code still only does the first alert and fails on the second.

Like I said before, the code works if it's all in the aspx page. What do
I need to do to get it to work in the .js file? Using the RegisertLB
didn't work either.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:er******* *******@TK2MSFT NGP02.phx.gbl.. .
>>For example:

Have this on your page:

var lb = document.getEle mentById('<%=LB Facilities.Clie ntID%>');

And following in your js file (which I suggest that you registrer with
Page.ClientSc ript.RegisterSt artupScript so that setting the variable
would be *before* the script using the variable in page source.

function btnFirst_Click( )
{
alert("Hello" );
alert(lb.opti ons.length);
return false;
}
</script>

If one thinks a bit further, say you have a large client-side library,
it would be wiser to use registration mechanism.

For example, your library would contain (e.g the js)

var lb = null;

function registerLb(lbTo Register)
{
lb = lbToregister;
}

And again your page would use:

<script>regis terLb(document. getElementById( '<%=LBFacilitie s.ClientID%>')) ;</script>

somewhere. And library would use it:

function btnFirst_Click( )
{
alert("Hello" );
if(lb != null)
alert(lb.option s.length);
return false;
}

or something like that. Of course it probably isn't that easy if you
think scenarios that multiple controls etc needs to be registered(when
you'd probably have array of them instead of one variable). On the other
hand, this was quite simple case when just the variable would work just
fine.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:7f****** *************** *********@comca st.com...
so how do I do this? I tried putting the variable at the top of the
.js dile, at the top of the aspx file and using
registerclie ntscriptblock.

Any suggestions?

Thanks.

"Teemu Keiski" <jo****@aspalli ance.comwrote in message
news:Ov***** *********@TK2MS FTNGP03.phx.gbl ...
Hi,
>
That's because LBFacilities controls exists on aspx page, and on
separate js file it (<%=... %>) doesn't get through ASP.NET's
processin g and therefore is returned literally what's on the js file
>
e.g js file contains *literally*
>
...
alert(docum ent.getElementB yId("<%=LBFacil ities.ClientID% >").options.len gth);
...
>
If you use it that way, you need to set the LBFacilities somehow as
argument or on global js variable on the page which the js file
reference s (makes js though reliable on the existence of the control)
>
>
--
Teemu Keiski
AspInside r, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
>
>
"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8**** *************** ***********@com cast.com...
>OK, I've narrowed down the problem. This works when in the aspx page
>>
><script type="text/javascript" >
>function btnFirst_Click( )
>{
>alert("Hel lo");
>alert(docu ment.getElement ById("<%=LBFaci lities.ClientID %>").options.le ngth);
>return false;
>}
></script>
>>
>But when I put this in a .js file, I get the first "Hello", but the
>second statement fails. I've put the
><script type="text/javascript" src="Facilities .js" ></script>
>>
>both on top and at the bottom of the aspx page. No luck.
>>
>How do I get this to work from a .js file?
>>
>Thanks.
>>
>--
>Matthew.We lls
>Ma***********@F irstByte.net
>>
>
>




Jun 27 '08 #9
I've found a workaround. I use RegisterClientS criptBlock on the .cs
page_load event and assign the lb.clientid string value to a variable. then
that string value is usable in the .js file and I can refer to the lstbox
then.

in the .cs file...

Page.RegisterCl ientScriptBlock ("ClientIDs" ,
"<script language='javas cript\'>\n" +
" var LBClientID = \"" + LBFacilities.Cl ientID + "\";\n" +
"</script>\n\n");

in the .js file...

var LB = document.getEle mentById(LBClie ntID);

Now I can refer to LB.options.leng th.


"Matthew Wells" <Ma***********@ FirstByte.netwr ote in message
news:K8******** *************** *******@comcast .com...
OK, I've narrowed down the problem. This works when in the aspx page

<script type="text/javascript" >
function btnFirst_Click( )
{
alert("Hello");
alert(document. getElementById( "<%=LBFacilitie s.ClientID%>"). options.length) ;
return false;
}
</script>

But when I put this in a .js file, I get the first "Hello", but the second
statement fails. I've put the
<script type="text/javascript" src="Facilities .js" ></script>

both on top and at the bottom of the aspx page. No luck.

How do I get this to work from a .js file?

Thanks.

--
Matthew.Wells
Ma***********@F irstByte.net

Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
15315
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via "locate.replace". I can do all this if the html page containing the script originates on the client machine, but don't know how to get access to a client-side temp file when the same html page containing the script is on a web host. How do I get access...
21
18252
by: ryanmhuc | last post by:
I know the subject might be confusing. I am no beginner with javascript but I haven't been able to figure out how to get the javascript file name from code inside the file. So you have an HTML doc with script tag who's source is a javascript file. <HTML> <script src="javascript.js"></script> </HTML> Javascript.js
10
4594
by: VictorG | last post by:
Hello, I am new to JS and am trying to add some HTML into a JS function. So that when called the script as well as the HTML will be invoked. Is there some type of embed mechanism, sort of the reverse of embedding JS in an html page with the script tag. (which is what I am doing in this case) Is this even possible?
4
2797
by: Mark Miller | last post by:
I've been trying to execute a javascript function just before submit on a form that contains an <input type="file"> input field and it isn't working. The reason I want to do this is the end users will be uploading files that are between 1 and 2 Meg. in size, and they are not too knowledgeable about computers. I want to disable the form buttons so they can't hit them after they hit the "upload" button. We're trying to prevent them from...
14
25642
by: Rich | last post by:
I am converting my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 (.NET v2.0.50727). The entire solution uses serveral technologies - Windows Server 2003 (AD, SQL Server 2000, IIS, ASP.NET, ASP.NET Mobile) Windows Mobile 2003 (Pocket IE) I have completed a portion of the conversion (ASP.NET Mobile pages for PIE, and some of the ASP.NET-bases web services), and while testing I have a runtime error that did not exist in the...
9
2938
by: Mahernoz | last post by:
Hello Friends, The JavaScript File exmplmenu_var.js contains the code... (for the sake of brevity i am showing only that code which needs to be changed) I am actually developing a menu using JavaScript. I have used a readymade javascript and there are variables like...
1
3194
by: wenijah | last post by:
Hi everyone! First thank you for reading this post and yes, you probably already see that kind of topic title somewhere but the problem I've got today might be different than the 100 topics I've seen so far that did not resolve my problem... Environment and problem: I have a page A with Ajax.js and a <div id="ajx">Content</div> that changes when clicking on a link. Another page, page B, gets loaded into page A and (tries) to load a...
3
3100
by: wbazarin | last post by:
I am very new using javascript and I faced a problem that with my expertise I cannot solve. I wrote a small html file that handle a vertical menu. I wrote a function to show the menu correctly using javascript. The contents of the menu are dynamic changed. In my project I have two javascript file: the first has all the functions to handle the menu and the second has just a JSON array with the information for the menu. Example: var mv = , ,...
3
4105
by: jackson.rayne | last post by:
Hello, Another newbie question here. Let me explain my situation first. I have bought a 3rd party tool that runs a PHP script and gives me some HTML code which I can directly use in my pages. The code generated is normal HTML code, example
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.