Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Hey everyone, this is a very tough problem I am facing right now in JavaScript.
I'm designing this script to load a page like an IFrame but is using AJAX, the only problem is that I need to edit certain attributes before displaying them through changing an element's innerHTML attribute.
Using the normal xmlHttp request, it retrieves a html document. But is there any way I could actually handle it through some kind of DOM before actually displaying it?
Modifying them after I display them is troublesome as the browser would convert relative links into absolute paths.
Using XML to load the document was fine, but then there was no way to generate the HTML code without lots of hassle.
Is there any other way?
PS: An older version of script is in my site, but it uses substr which is very messy.
I'm designing this script to load a page like an IFrame but is using AJAX, the only problem is that I need to edit certain attributes before displaying them through changing an element's innerHTML attribute.
Using the normal xmlHttp request, it retrieves a html document. But is there any way I could actually handle it through some kind of DOM before actually displaying it?
Modifying them after I display them is troublesome as the browser would convert relative links into absolute paths.
Using XML to load the document was fine, but then there was no way to generate the HTML code without lots of hassle.
Is there any other way?
PS: An older version of script is in my site, but it uses substr which is very messy.
Cheers,
Lee-Pro
Lee-Pro
Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
- AJAX resources (JavaScript / DHTML / AJAX)
- Ajax Question (ASP.NET)
- Levyo Ajax Technology Gallery (JavaScript / DHTML / AJAX)
- AJAX : Am i right with the concept? (JavaScript / DHTML / AJAX)
- AJAX and Smarty (PHP)
- AJAX techniques... (JavaScript / DHTML / AJAX)
- newbie question about vbulletin (Growing an Online Community)
- AJAX in Apache? (Linux Servers and Apache)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: to select a string from textarea
- Next Thread: Can I control the Screen resolution in web page?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode