Hi,
Am not sure if this group is active anymore, nevertheless I am looking for
developers with
Ruby on Rails experience. We are building a software product and a looking for
people
interesting in freelancing.
Please send me your resume and fee details at alok.ajain1@... in case you
are
interested.
Cheers
Alok Jain
Hi, I am working on an application where I am reuired to make AJAX calls between different domains.Below is the summary of my problem:
Say there is a domain
abc.com there is another domain called xyz.com
I want to make AJAX calls from
abc.com to xyz.com ======================================================= Sample code would be: (this will be contained in any page of abc.com) var url = "
xyz.com?strCriteria=testcriteria"; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.open("GET", url, true);
req.onreadystatechange = callback; req.send(null); ======================================================
When I do this it gives me "Access is denied". How do I do that? Please suggest any AJAX or non AJAX solution.
My understanding is that most browsers won't allow cross-domain ajax requests as a security precaution - some may allow you to disable that, I dunno.
One thing I've done in the past is develop a server-side proxy that would exist (
i.e.) on abc.com and act as a go-between between abc's AJAX scripts and xyz's xml response. -Jeff
----- Original Message ---- From: krishnakumar_08 <krishnakumar_08@...
> To: AJAX_2-0@yahoogroups.com Sent: Monday, August 13, 2007 11:21:43 AM Subject: [AJAX_2-0] How to make AJAX request between different domains??
Hi, I am working on an application where I am reuired to make AJAX calls between different domains.Below is the summary of my problem:
Say there is a domain
abc.com there is another domain called xyz.com
I want to make AJAX calls from
abc.com to xyz.com ============ ========= ========= ========= ========= ======= Sample code would be: (this will be contained in any page of abc.com) var url = "
xyz.com?strCriteri a=testcriteria" ; if (window.XMLHttpRequ est) { req = new XMLHttpRequest( ); } else if (window.ActiveXObje ct) { req = new ActiveXObject( "Microsoft. XMLHTTP") ; } req.open
("GET" , url, true); req.onreadystatecha nge = callback; req.send(null) ; ============ ========= ========= ========= ========= ======
When I do this it gives me "Access is denied". How do I do that?
Please suggest any AJAX or non AJAX solution.
__________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
Hi All,
I found the solution myself.Here is a summary of what I have done:-
I have a tomcat and Jboss installed on two different machines.I am
making a call from a web application deployed on tomcat to a web
service deployed on JBoss App Server.
This is not possible through AJAX because XMLHttp doesnt allow you to
make ajax calls between different domains.
There is a little known javascript trick called script tag monkeying
where you insert javascript from one domain to another domain.Through
this technique we can make javascript calls between different domains.
Below mentioned link is a very good link to understand this concept.
http://www.javaworld.com/javaworld/jw-11-2006/jw-1115-json.html?page=2
The implementation provided on javaworld is based on JSON but this
implementation is possible without JSON as well.
Let me know should you need any more help.
Thanks
--- In AJAX_2-0@yahoogroups.com, Jeff Woodman <sanctumvoid@...> wrote:
>
> My understanding is that most browsers won't allow cross-domain
ajax requests as a security precaution - some may allow you to
disable that, I dunno.
>
> One thing I've done in the past is develop a server-side proxy that
would exist (i.e.) on abc.com and act as a go-between between abc's
AJAX scripts and xyz's xml response.
> -Jeff
>
> http://www.sanctumvoid.net
>
>
>
> ----- Original Message ----
> From: krishnakumar_08 <krishnakumar_08@...>
> To: AJAX_2-0@yahoogroups.com
> Sent: Monday, August 13, 2007 11:21:43 AM
> Subject: [AJAX_2-0] How to make AJAX request between different
domains??
>
> Hi,
> I am working on an application where I am reuired to make AJAX
calls
> between different domains.Below is the summary of my problem:
>
> Say there is a domain
> abc.com
> there is another domain called
> xyz.com
>
> I want to make AJAX calls from abc.com to
> xyz.com
> ============ ========= ========= ========= ========= =======
> Sample code would be:
> (this will be contained in any page of abc.com)
> var url = "xyz.com?strCriteri a=testcriteria" ;
> if (window.XMLHttpRequ est) {
> req = new XMLHttpRequest( );
> } else if (window.ActiveXObje ct) {
> req = new ActiveXObject( "Microsoft. XMLHTTP") ;
> }
> req.open("GET" , url, true);
> req.onreadystatecha nge = callback;
> req.send(null) ;
> ============ ========= ========= ========= ========= ======
>
> When I do this it gives me "Access is denied".
> How do I do that?
> Please suggest any AJAX or non AJAX solution.
>
>
>
>
>
>
>
______________________________________________________________________
______________
> Moody friends. Drama queens. Your life? Nope! - their life, your
story. Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
My understanding is that most browsers won't allow cross-domain ajax requests as a security precaution - some may allow you to disable that, I dunno.
One thing I've done in the past is develop a server-side proxy that would exist (i.e.) on abc.com and act as a go-between between abc's AJAX scripts and xyz's xml response.
-Jeff
http://www.sanctumvoid.net
----- Original Message ---- From: krishnakumar_08 <krishnakumar_08@...> To: AJAX_2-0@yahoogroups.com Sent: Monday, August 13, 2007 11:21:43 AM Subject: [AJAX_2-0] How to make AJAX request between different domains??
Hi, I am working on an application where I am reuired to make AJAX calls between different domains.Below is the summary of my problem:
Say there is a domain abc.com there is another domain called xyz.com
I want to make AJAX calls from abc.com to xyz.com ============ ========= ========= ========= ========= ======= Sample code would be: (this will be contained in any page of abc.com) var url = "xyz.com?strCriteri a=testcriteria" ; if (window.XMLHttpRequ est) { req = new XMLHttpRequest( ); } else if (window.ActiveXObje ct) { req = new ActiveXObject( "Microsoft. XMLHTTP") ; } req.open("GET" , url, true); req.onreadystatecha nge = callback; req.send(null) ; ============ ========= ========= ========= ========= ======
When I do this it gives me "Access is denied". How do I do that? Please suggest any AJAX or non AJAX
solution.
Hi,
I am working on an application where I am reuired to make AJAX calls
between different domains.Below is the summary of my problem:
Say there is a domain
abc.com
there is another domain called
xyz.com
I want to make AJAX calls from abc.com to
xyz.com
=======================================================
Sample code would be:
(this will be contained in any page of abc.com)
var url = "xyz.com?strCriteria=testcriteria";
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", url, true);
req.onreadystatechange = callback;
req.send(null);
======================================================
When I do this it gives me "Access is denied".
How do I do that?
Please suggest any AJAX or non AJAX solution.
Hi. I am new in this group.
I am having a problem with AJAX with ASP.NET (both Framework 1.1 and
2.0)
I have some custom controls (such a Grid) that uses reflection to
get data form buness objects (such as the ObjectdataSource does, but
this is my implementation).
When it finishes rendering all contents, it stores it self in
session to be retreived in later AJAX refresh calls.
AJAX calls (which code I paste below) calls a "GridRemote.aspx" page
that gets the parameters to retreive the grid from session, then
render it, and finally returns the contents to be returned by the
ajax call. Then a JS function replaces the grid code with the new
one and that's it... magic is done ;-)
The problem is that after certain time or after several calls (I am
not sure which events starts producing the error. Surely the time
the most cases) I receive an empty AJAX response. Every other AJAX
call behaves the same after that.
Debugging Javascript, the call is made ok. I get the 4 redystate and
the 200 request status, but the responsetext is '' nothing...
Debugging ASP.NET, the AJAX request is detected in global.asax, but
no other code is executed. Neither the GridRemote.aspx Sub New, nor
any other peace of code (that's why AJAX gets nothing).
Afer refreshing the whole page, I check the session Id and it's the
same... so... no wonder what's going on...
The only action that fix this situation y restarting IIS.
żAny help please?
Thanks
AJAX Code:
Ajax.getDataReturnText = function(url, callback)
{
var XMLHttpRequestObject = false;
if (window.XMLHttpRequest)
{
XMLHttpRequestObject = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}
if(XMLHttpRequestObject)
{
XMLHttpRequestObject.open("GET", url, true);
XMLHttpRequestObject.onreadystatechange = function()
{
if (XMLHttpRequestObject.readyState == 4 &&
XMLHttpRequestObject.status == 200)
{
callback(XMLHttpRequestObject.responseText);
delete XMLHttpRequestObject;
XMLHttpRequestObject = null;
}
}
XMLHttpRequestObject.send(null);
}
}
--- In AJAX_2-0@yahoogroups.com, jajaka_subang <no_reply@...> wrote:
>
> dear all.
>
> when i used AJAX in MOZILLA FIRE FOX there are a bug the result is not
> exists cause i used <div >in HTML tag is there anybody can help me
>
Can you post the code? I'm not sure what you mean. :-)
think asp.net is more flexible than PHP... .Net has its own intregration with AJAX.. there ASP.NET AJAX BETA 1.0 download to integrate your application with AJAX.No Crowdy Coding is needed while using AJAX WITH ASP.NET
Dear Members,
How will you rate php,mysql,Ajax and asp.net,SQL,Ajax ?
Actually I want to develop a website using Ajax, so tell me which
language I should use and which language has variety of support available?
Also the comparison using php and asp.net with AJAX.
Please mention the resources on AJAX.
Thanks,
hi am a begginner in using ajax.... currently am working with asp.net ajax beta 1.0(Former Atlas)... i have some doubts on UPDATE PANEL AND SCRIPT MANAGER ....my scenario i svery simple. but i dint know how to do that.. i have 2 dropdownlists 2ND dropdown Should be Populated when we select a value in 1st dropdown and without any postback flickering.. i have dragedd 2 dropdowns into updatepanel accompanied by a script manager.
Population or Databinding of 2nd dropdown doing well,but thre is flickering due to Post back.. can any one help me 2 use these UPDATE PANEL AND SCRIPT MANAGER CONTROLS FOR PARTIAL POSTBACKING...
----- Original Message ---- From: Infoligence Associates <gurudatta_raut-infoligence@...> To: AJAX_2-0@yahoogroups.com Sent: Monday, November 6, 2006 11:40:07 PM Subject: Re: [AJAX_2-0] Re: Is this ASP.Net statement correct, tell me if its All Right
Hello everyone,
Thank god out of so many member one got time to respond. And saved the face of this group from being a failed one.
Ok, so u mean its very easy in ASP.net to do this :
Generate a code block of JavaScript , send it to the webpage after some user interaction and use it to manipulate the existing HTML elements on the page (including creating some new ones). This is useful when we dont want to refresh a big heavy HTML page and we even dont want to load all the javascript at the start of the page load (inorder to speed up things); which gives us the power to use as much as Javascript as we want at runtime whenever the user interaction demands; storing it in the users web page for further use as we go on uploading it.
I hope i didnt goofup, i am not ASP.net expert though i was fan of ASP3.0, which i had to abandon after M$ broke it with .Net.
Waiting for each one of your comments on
this utmost important cutting edge topic of Web Science.
Jeff <sanctumvoid@ yahoo.com> wrote:
--- In AJAX_2-0@yahoogroup s.com, "Logically Genius" infoligence@ ...> wrote: > > > > I have just added the green text in our homepage > http://tech. groups.yahoo. com/group/ AJAX_2-0 > > > > Tell me if thats true, for thats what i think happens in ASP.Net. > > Please reply only about the green text, create another thread for other > comments. >
Typically in ASP.Net, I will code .ASPX pages that output XML according to my specifications. So, in that sense, the webserver gives me exactly what I ask for.
Internet is the computer ! Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups. yahoo.com/ group/AJAX_ 2-0/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go
to: http://groups. yahoo.com/ group/AJAX_ 2-0/join (Yahoo! ID required)
<*> To change settings via email: mailto:AJAX_ 2-0-digest@ yahoogroups. com mailto:AJAX_ 2-0-fullfeatured @yahoogroups. com
<*> To unsubscribe from this group, send an email to: AJAX_2-0-unsubscrib e@yahoogroups. com
<*> Your use of Yahoo! Groups is subject to: http://docs. yahoo.com/ info/terms/
Yep, you can register client script blocks with .Net to dynamically include script. With .Net 2.0, AJAX is a little easier with the new support for XHTML. And your pages are pretty much guaranteed to render in standards-compliance mode. There are instances that working with the HTML can be difficult, such as within ASP.Net controls like repeaters and grids, because some elements are given IDs dynamically.
Thank god out of so many member one got time to respond. And saved the face of this group from being a failed one.
Ok, so u mean its very easy in ASP.net to do this :
Generate a code block of JavaScript , send it to the webpage after some user interaction and use it to manipulate the existing HTML elements on the page (including creating some new ones). This is useful when we dont want to refresh a big heavy HTML page and we even dont want to load all the javascript at the start of the page load (inorder to speed up things); which gives us the power to use as much as Javascript as we want at runtime whenever the user interaction demands; storing it in the users web page for further use as we go on uploading it.
I hope i didnt goofup, i am not ASP.net expert though i was fan of ASP3.0, which i had to abandon after M$ broke it with .Net.
Waiting for each one of your comments on
this utmost important cutting edge topic of Web Science.
Jeff <sanctumvoid@...> wrote:
--- In AJAX_2-0@yahoogroups.com, "Logically Genius" infoligence@...> wrote: > > > > I have just added the green text in our homepage > http://tech.groups.yahoo.com/group/AJAX_2-0 > > > > Tell me if thats true, for thats what i think happens in ASP.Net. > > Please reply only about the green text, create another thread for other > comments. >
Typically in ASP.Net, I will code .ASPX pages that output XML according to my specifications. So, in that sense, the webserver gives me exactly what I ask for.
Internet is the computer ! Yahoo! Groups Links
<*> To visit your
group on the web, go to: http://groups.yahoo.com/group/AJAX_2-0/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/AJAX_2-0/join (Yahoo! ID required)
<*> To change settings via email: mailto:AJAX_2-0-digest@yahoogroups.com mailto:AJAX_2-0-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to: AJAX_2-0-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
--- In AJAX_2-0@yahoogroups.com, "Logically Genius" <gurudatta_raut-
infoligence@...> wrote:
>
>
>
> I have just added the green text in our homepage
> http://tech.groups.yahoo.com/group/AJAX_2-0
> <http://tech.groups.yahoo.com/group/AJAX_2-0>
>
>
> Tell me if thats true, for thats what i think happens in ASP.Net.
>
> Please reply only about the green text, create another thread for
other
> comments.
>
Typically in ASP.Net, I will code .ASPX pages that output XML according
to my specifications. So, in that sense, the webserver gives me exactly
what I ask for.
but then that will mean first loading the Iframe form and then submitting it; sort of slow.
What else could be the answer ?
what if we generate the page in the Iframe and then submit ?
christopher andrada <chrisandrada@...> wrote:
Hi all, is there any way i can send the parameter data instead of concatinating all name of the element and value of element in "url" below. I mean sort of like a submit to post in which the receiving end will request as request.form something... because what if i have thousands of elements/parameters to send to "ajax_validateMove.aspx", do i have to concatinate them all with the varialble name "url"? Please help.
thanks.
url="ajax_validateMove.aspx" + toConCat; http.open("GET", url, true); isWorking = true; http.onreadystatechange = function(){ if (http.readyState == 4) { isWorking = false; if (http.responseText.indexOf('invalid') == -1) { isWorking = false; } if (http.responseText == "Valid"){ ... do something } else{ ... do somthing } } } http.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); http.send();
__________________________________________________________________________________________ Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. (http://advision.webevents.yahoo.com/mailbeta)
Internet is the computer ! Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/AJAX_2-0/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/AJAX_2-0/join (Yahoo! ID required)
<*> To change settings via email: mailto:AJAX_2-0-digest@yahoogroups.com mailto:AJAX_2-0-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to: AJAX_2-0-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Hi all,
is there any way i can send the parameter data instead
of concatinating all name of the element and value of
element in "url" below. I mean sort of like a submit
to post in which the receiving end will request as
request.form something... because what if i have
thousands of elements/parameters to send to
"ajax_validateMove.aspx", do i have to concatinate
them all with the varialble name "url"? Please help.
thanks.
url="ajax_validateMove.aspx" + toConCat;
http.open("GET", url, true);
isWorking = true;
http.onreadystatechange = function(){
if (http.readyState == 4) {
isWorking = false;
if (http.responseText.indexOf('invalid') == -1) {
isWorking = false;
}
if (http.responseText == "Valid"){
... do something
}
else{
... do somthing
}
}
}
http.setRequestHeader("If-Modified-Since", "Sat, 1 Jan
2000 00:00:00 GMT");
http.send();
________________________________________________________________________________\
__________
Check out the New Yahoo! Mail - Fire up a more powerful email and get things
done faster.
(http://advision.webevents.yahoo.com/mailbeta)
yeah... that's probably the only way... good idea tho.
thanks
--- "Sreeni .A" <sreeniaphpcoder@...> wrote:
> hi Crhistopher,
> you make the button to 'button' type rather
> 'submit'
>
> call the validate function on 'onclick' event
> rather 'onsubmit'
>
> use javascript submit() function after your
> response it ok to proceed the
> form submission.
>
> Hope this solves your problem
>
> -Sreeni.A
>
> On 10/27/06, christopher andrada
> <chrisandrada@...> wrote:
> >
> > hi all,
> >
> > i need help on my code. when i submit the form
> > onsubmit... i call ajax to fetch if the inputs are
> > valid... but before ajax makes a round trip... the
> > onsubmit function already returned true and went
> ahead
> > and submitted the page for porcessing. i how do i
> > make the javascript onsubmit wait for the response
> of
> > the ajax call then proceed with other task within
> the
> > onsubmit call.
> >
> > thanks in advance.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
________________________________________________________________________________\
____
Get your email and see which of your friends are online - Right on the New
Yahoo.com
(http://www.yahoo.com/preview)
I want users to enter a how many words they want translated then have
this multiplied by 25 yen (the rate per word trans)
Is this possible with ajax (using coldfusion)?
example
(word count) text box - enter 100
quoute box below total appears 2500yen
of course without refresh
Im working on the sql at the moment but could someone be kind enough
explain the steps (or code)
Many thanks
Mark
i need help on my code. when i submit the form
onsubmit... i call ajax to fetch if the inputs are
valid... but before ajax makes a round trip... the
onsubmit function already returned true and went ahead
and submitted the page for porcessing. i how do i
make the javascript onsubmit wait for the response of
the ajax call then proceed with other task within the
onsubmit call.
thanks in advance.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
hi all,
i need help on my code. when i submit the form
onsubmit... i call ajax to fetch if the inputs are
valid... but before ajax makes a round trip... the
onsubmit function already returned true and went ahead
and submitted the page for porcessing. i how do i
make the javascript onsubmit wait for the response of
the ajax call then proceed with other task within the
onsubmit call.
thanks in advance.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
and for receving data i am using same XMLHttpRequestobject 's Get Method.
and my GetChatData is refreshing after every two second.
window.setTimeout("getChatData('"+ Typ +"','"+ divID +"')",2000);
now the problem is my functions working fine but GetChatData function is getting only first time data..when i have started that browser.not any other message which i send later. but it works fine in my local system. but on another system it is not working
i have also tried
window.setTimeout("new getChatData('"+ Typ +"','"+ divID +"')",2000);
Ajax Toybox
: Simple first programs including, Hello, World, Dynamic City, State
Lookup, Ajax to Clean Your Clock, Ajax Calculator and an RSS News
Ticker.
Mastering Ajax, Part 6: Build DOM-based Web applications Continue to explore how DOM programming fits into interactive Ajax applications as Brett McLaughlin completes his trilogy of articles on DOM programming with a DOM application in practice.
Mastering Ajax, Part 5: Manipulate the DOM Last
month Brett introduced the Document Object Model, whose elements work
behind the scenes to define your Web pages. This month he dives even
deeper into the DOM. Learn how to create, remove, and change the parts
of a DOM tree, and take the next step toward updating your Web pages on
the fly!
Mastering Ajax, Part 4: Exploiting DOM for Web response The
great divide between programmers (who work with back-end applications)
and Web programmers (who spend their time writing HTML, CSS, and
JavaScript) is long standing. However, the Document Object Model (DOM)
bridges the chasm and makes working with both XML on the back end and
HTML on the front end possible and an effective tool. In this article,
Brett McLaughlin introduces the Document Object Model, explains its use
in Web pages, and starts to explore its usage from JavaScript.
Mastering Ajax, Part 3: Advanced requests and responses in Ajax For
many Web developers, making simple requests and receiving simple
responses is all they'll ever need, but for developers who want to
master Ajax, a complete understanding of HTTP status codes,
ready states, and the XMLHttpRequest object is required. In this
article, Brett McLaughlin will show you the different status codes and
demonstrate how browsers handle each and he will showcase the
lesser-used HTTP requests that you can make with Ajax.
Mastering Ajax, Part 2: Make asynchronous requests with JavaScript and Ajax Most
Web applications use a request/response model that gets an entire HTML
page from the server. The result is a back-and-forth that usually
involves clicking a button, waiting for the server, clicking another
button, and then waiting some more. With Ajax and the
XMLHttpRequest object, you can use a request/response model that never
leaves users waiting for a server to respond. In this article, Brett
McLaughlin shows you how to create XMLHttpRequest instances in a
cross-browser way, construct and send requests, and respond to the
server.
Mastering Ajax, Part 1: Introduction to Ajax Ajax,
which consists of HTML, JavaScript, DHTML, and DOM, is an outstanding
approach that helps you transform clunky Web interfaces into
interactive Ajax applications. The author, an Ajax
expert, demonstrates how these technologies work together -- from an
overview to a detailed look -- to make extremely efficient Web
development an easy reality. He also unveils the central concepts of Ajax, including the XMLHttpRequest object.
Someone please reply him , he mailed me intead of our group.
Note: forwarded message attached.
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Hi,
I am new here and have not yet played with AJAX.
I am PC programmer who has migrated net based software such as DHTML, PHP MySQL etc.
I am interested in creating custom 'Web 2.0' web sites but I don't want to be tied into the limitations of a particular package such as AJAX.
I tried the code below and it is functional but I have some issues with it.
1) 'id' is not a valid DOM property of 'script' I was thinking of doing things this way myself but I want to stay within the DOM so as not to have compatibility issues.
2) CreateElement and AppendChild may not work as expected.
You can create an element and then there is a need to AppendChild.
Does RemoveChild actually DELETE the element or just remove it association with it's parent?
I suspect that RemoveChild only removes the association and not the actual element. This would result in ever growing resources being consumed on the client as more dynamic content has been transferred?
Having said that,I will play with this code until I get the results I want.
I was intending to have the head.script element in the original HTML and just change the src attribute.
For data in the other direction client>>server, I was playing with events dynamically linking to
It seems that browsers don't care what the extension is as long as the server sends back the correct header.
One tool I would like to have is a debugging script that shows all active nodes on the current document.
This would help me in those tricky instances where there are two <head> elements in one document.
Was anyone seen such a script of do I have to write it from scratch?
Thanks, Rob.
The scripts I used for testing -
--------------------------------
Filename testjs.htm
<html>
<head> </head>
<body>
<script> function test1(){ var script = document.createElement('script'); script.src = 'servertest1.js'; script.type = 'text/javascript'; script.defer = true; var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
}
function test2(){ var script = document.createElement('script'); script.src = 'servertest2.js'; script.type = 'text/javascript'; script.defer = true; var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
}
</script>
<span onmouseover="test1();">(Test 1) Mouse over here</span> <span onmouseover="test2();">(Test 2) Mouse over here</span>
var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
var head = document.getElementsByTagName('head').item(0); script.id = 'lastLoadedCommands'; var old = document.getElementById('lastLoadedCommands'); if (old) head.removeChild(script');