I want to create a virtual filesystem. When you open page you see a
number of 'folders' represented by a name and an icon. When you click
on the icon an xmlhttprequest is send retrieving the subfolders and
files. When you click on thus created representation of a subfolder a
new xmlhttprequest is send to the server to retrieve the subfolders and
files for that subfolder.
On the serverside I create a domdocument (php) which contains html-tags
(div, h2, span, img, ...) and send it as xml to the client javascript.
I get the information (the html tags and attributes like src, id, href,
.... are ok) and take the root element and put in in the specified place
on my html-page. Only the titles of the subfolders (h2-tag) are shown
as text and they stick together instead of showing up in bold and
sperated like a good h2 should do. (I don't retrieve the files yet).
The layout isn't used, no images are shown, h2 is shown as plain text,
.... When I view the generated source with webdeveloper toolbar in
firefox everything looks fine, when I save generated source as html and
open it in browser the correct layout is applied.
What I am doing wrong ?
Pugi! 1 1254
Pugi! wrote:
I want to create a virtual filesystem. When you open page you see a
number of 'folders' represented by a name and an icon. When you click
on the icon an xmlhttprequest is send retrieving the subfolders and
files. When you click on thus created representation of a subfolder a
new xmlhttprequest is send to the server to retrieve the subfolders and
files for that subfolder.
On the serverside I create a domdocument (php) which contains html-tags
(div, h2, span, img, ...) and send it as xml to the client javascript.
I get the information (the html tags and attributes like src, id, href,
... are ok) and take the root element and put in in the specified place
on my html-page. Only the titles of the subfolders (h2-tag) are shown
as text and they stick together instead of showing up in bold and
sperated like a good h2 should do. (I don't retrieve the files yet).
The layout isn't used, no images are shown, h2 is shown as plain text,
... When I view the generated source with webdeveloper toolbar in
firefox everything looks fine, when I save generated source as html and
open it in browser the correct layout is applied.
What I am doing wrong ?
Pugi!
Are you maybe using Javascript in the response?
(If you want your Ajax-response to contain JS, you need more than just
returning the JS.)
eg, if this is the response from the server via AJAX, and you put it in some
div, nothing will happen, except the rendering of the html:
------- START AJAXRESPONSE ---------
<h1>You can see me</h1>
<script type="text/javascript">
alert("I do not execute at all.");
</script>
------- END AJAXRESPONSE -----------
Regards,
Erwin Moller This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: melledge |
last post by:
Ajax Developers' Day added to XTech 2006 agenda
XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The
Netherlands
|
by: melledge |
last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference
Industry experts offer insight into next generation of the Web
ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the
rapidly developing world of Ajax user interfaces on the browser,
IDEAlliance (www.idealliance.org) announced today that its annual XTech
Conference will kick...
|
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 Ajax
Frameworks will be gone? What is required to get rid of them and start
using browsers?" (To be more precise, I should probably also mention
what...
|
by: www.web20developers.com |
last post by:
http://www.web20developers.com
http://www.web20developers.com/index.php?option=com_content&task=view...
Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell
AJAX - microlink pattern tutorial : A microlink is a link that opens up
|
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
object. If the string I am passing to javascript from php is too large
javascript does not get it all the data. The magic number appears to
be 6123...
| |
by: Free Ebooks |
last post by:
81 AJAX and 24 JavaScript Ebooks
Here are some of the AJAX topics and areas covered by these ebooks:
Rails and AJAX
Building Ajax Web Applications
Creating Ajax Web Pages
Ajax Patterns
Ajax Tutorial
Ajax Best Practices
Ajax XMLHttpRequest and Struts
|
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 another to
really see how great something is.)
Thanks
--
Share The Knowledge. I need all the help I can get and so do you!
|
by: Jonathan Wood |
last post by:
Greetings,
I'd like to implement some AJAX features on an existing ASP.NET site. I have
one example of doing this but, otherwise, don't know much about it.
I have one question, though, about getting started: I notice that there are
project templates for creating AJAX this and AJAX that. I'm a little
confused about this. Am I not able to...
|
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 that I see in the comments, but no luck there), but what I already have works GREAT to populate the options in a select box. Now I'm trying to take...
|
by: Scott M. |
last post by:
What is the version number of AJAX when we talk about ASP .NET AJAX in VS
2008?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |