473,383 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

'Trick' to see AJAX-adjusted HTML on the client side?

scubak1w1
Hello,

Is there a 'trick'/technique to see what the code on a page looks like on the client side after AJAX adjusts part of it?

(for the example I had in mind, as the user selects items from <select>s on a form and AJAX adjusts the available <option>s in the next <select> based on the user's selection... and I would like to see what the HTML looks like - especially related to the <input> tag - related to another post)

That is, if you 'view source' in the browser you seem to see just the original page as 'sent' by the web server... even if you do so after the page has been adjusted by AJAX client-side...

Newbie alert BTW! :-)

Regards & TIA,
GREG...
Apr 2 '08 #1
4 1166
gits
5,390 Expert Mod 4TB
just use firefox/mozilla's DOM-inspector or the firebug extension where you may explore the current dom-tree of a document ...

kind regards
Apr 2 '08 #2
hsriat
1,654 Expert 1GB
Find the add-on for the Firefox here.
You may find it useful for other things too.

Regards
Apr 2 '08 #3
sorry about the delay in replying, some fires and all that!

thank you gentleman for the suggestion/s... off to explore those now...

Regards,
GREG...
Apr 8 '08 #4
This'll work in any major browser:

---------------------------------------------------------------------------------------
[HTML]<style type="text/css">
textarea#doc_source {
position:fixed; z-index:1000; bottom:10px; right:20px; width:600px; height:300px; display:none; overflow:scroll;
}

input#doc_button {
position:fixed; z-index:1000; top:10px; right:20px; width:120px;
}
</style>

<!--[if lte IE 6]>
<style type="text/css">
textarea#doc_source {
position: absolute;
}

input#doc_button {
position: absolute;
}
</style>
<![endif]-->

<textarea id="doc_source" onblur="this.style.display='none';">
</textarea>

<input
id="doc_button"
type="button" onclick="document.getElementById('doc_source').sty le.display='block'; document.getElementById('doc_source').value=''; document.getElementById('doc_source').value=docume nt.documentElement.innerHTML; document.getElementById('doc_source').focus();"
value="View Source" />[/HTML]
---------------------------------------------------------------------------------------

Just paste it in whenever you need it.
http://www.matts411.com/webdev/a_qui...ed_source_code
Apr 8 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: caston | last post by:
Well, everybody can now agree with the fact that the Ajax hype is over. Still multiple Ajax Frameworks are flourishing, aren't they? So, last night I questioned myself with the following: "When...
11
by: vunet.us | last post by:
Since XMLHTTP Request does not support loading of XML from other servers, I decided to use a trick: load XML into hidden iframe and then get that XML with JavaScript to parse. But, is this a good...
10
by: trpost | last post by:
I am using ajax / php where I am looking up some info from the database and populating a select list dynamically, however I am running into some sort of size limitation with the ajax.response...
3
by: bbawa1 | last post by:
I just want to know that I have already a web application. I want to use ajax in one of my web forms. I installed AJAX in my machine. Now to use ajax in my web application should I create a new...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
10
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's...
2
by: soni2926 | last post by:
hi, does anyone know of any good books on ajax and asp.net, one that teaches ajax itself before jumping in atlas? I wanted to get an understanding of ajax and how to use it, most books i've seen...
1
by: shaunwo | last post by:
I'm an AJAX / DOM Novice (at best) and trying to figure out how to write the value to a couple input fields. I don't remember exactly where I got the ajax.js file I'm using from (went to the website...
7
by: Joe | last post by:
I added some ajax to my asp.net web site and will Ajax just doesn't seem to work. Does Any one PLEASE have any ideas on why Ajax doesn't work on Apache 2.2.6 w/asp.net 2.0
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.