User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,528 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,781 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1304 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 1
Reputation: BNArun is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BNArun BNArun is offline Offline
Newbie Poster

Question Urgent help needed regarding executing Scripts in AJAX response

  #1  
Oct 5th, 2007
Urgent help needed regarding executing Scripts in AJAX response. If possible, please post the code snippet also as soon as possible.

Thanks in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Urgent help needed regarding executing Scripts in AJAX response

  #2  
Oct 5th, 2007
you have to be a little more specific. what exact do you need to do with it.
Reply With Quote  
Join Date: Oct 2007
Posts: 1
Reputation: twohawks is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
twohawks twohawks is offline Offline
Newbie Poster

Re: Urgent help needed regarding executing Scripts in AJAX response

  #3  
Oct 6th, 2007
I am looking for the same solution.
The details are I am fetching a file via ajax, much as you would an iframe. The file opens in an 'ajaxwin' window layer above the parent dhtml document (floating div essentially).

The problem is that if your external page contains a JavaScript that dynamically outputs something on runtime in that page, for example:
document.write("My name is John")
That output will not shown up when it's included on the main page via Ajax, as this is a runtime operation, which Ajax isn't (it's asynchronous or dynamic).

Here is a link to a fuller description of the issue:
Populating DHTML Widget window.

This will be interesting if someone knows what to do with this ;^)
Cheers,
TwoHawks
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Urgent help needed regarding executing Scripts in AJAX response

  #4  
Oct 7th, 2007
The problem is that different information exists on different computers.

When JS writes something dynamic, the client computer knows this, but the server computer can't see it.

Meanwhile, the server computer can see only the original version of the page, so that is what it uses.

You need ONE server-side program handling all of the operations.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:19 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC