List Info

Thread: Konqueror and including CSS with Ajax




Konqueror and including CSS with Ajax
user name
2007-01-26 10:26:21
Hi all

I hope this is the right list - I couldn't find one for
Konqueror 
specifically but if there
is one, please let me know.

I'm in the middle of writing a web app which uses AJAX to
include XHTML and
CSS, and am having trouble getting Konqueror to recognise
the css link 
request
downloaded in the AJAX request. This works in IE6+, firefox,
Opera, and 
Epiphany
but not Konqueror. Does anyone know a workaround or
alternative 
technique which
will work for Konqueror?

In more detail ...

I have a web page with a button that replaces the contents
of one <div> 
with the
results of the ajax server request which includes some css.
e.g.

<div id="replace"></div>

becomes

<div id="replace">
    <link rel="stylesheet"
type="text/css" 
href="pathtocss/setcolourtored.css">
    Here is the rest of the code downloaded
</div>

where the setcolourtored.css changes the text colour to
red.

In all the other browsers above, the text "Here is the
rest of the code 
downloaded" is red,
whereas in Konqueror it stays the standard colour, which
shows Konqueror 
doesn't download
the stylesheet or doesn't interpret it.

Hope this makes sense (and this is the right list!)

Regards

Neill Jones



	
	
		
___________________________________________________________

All new Yahoo! Mail "The new Interface is stunning in
its simplicity and ease of use." - PC Magazine 
http://uk.doc
s.yahoo.com/nowyoucan.html
___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.

Re: Konqueror and including CSS with Ajax
user name
2007-01-26 15:20:46
On Fri, Jan 26, 2007 at 04:26:21PM +0000, Neill Jones
wrote:
> Hi all
> 
> I hope this is the right list - I couldn't find one for
Konqueror 
> specifically but if there
> is one, please let me know.

http://www.konqu
eror.org/developers/
For any question about Konqueror, please mail  the
developer's
mailing list, kfm-develkde.org (mention whether you're
subscribed
to the list when posting to it, see here for subscribing)

There are some questions in the archives which are about
scripting
and Ajax.

> Does anyone know a workaround or alternative technique
which
> will work for Konqueror?
> 
> ..., which shows Konqueror doesn't download the
> stylesheet or doesn't interpret it.

http://www.w3.org/TR/html4/struct/links.html#edef-LINK

<!ELEMENT LINK - O EMPTY               -- a
media-independent link -->
This element defines a link. Unlike A, it may only appear in
the
HEAD section of a document, ...

Have you tried to create a link element and adding that to
the
head element of your document?

That way should also work with Firefox and IE6.

Peter
___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )