Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
JS: document.createTextNode i special characters

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
macros



Joined: 03 Jan 2004
Posts: 23
Location: Zagreb, HR

PostPosted: 06.08.2006 12:25    Post subject: JS: document.createTextNode i special characters Add user to your forum ignore list Reply with quote

Imam problem sa javascriptom da kad dodam tekst u html kod sa document.createTextNode, da ne mogu upisat specijalne znakove tipa "ä", "ö" i "&" preko njihovog HTML koda (tj. "ä", "ö" ili "&") jer mi onda ispise u browseru kao "ä" itd...
A ak upisem direktno kao znak (sto se svakako nebi trebalo) ispise mi neke gluposti). Isprobano u FF i Operi...

Jel zna neko kako to rijesit?

_________________
Es gibt nichts stilleres als eine geladene Kanone. - Heinrich Heine
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.08.2006 13:04    Post subject: Re: JS: document.createTextNode i special characters Add user to your forum ignore list Reply with quote

macros wrote:
A ak upisem direktno kao znak (sto se svakako nebi trebalo)

zašto ne? Confused

Quote:
ispise mi neke gluposti). Isprobano u FF i Operi...

neka ti js bude sejvan u istom encodingu kao što serviraš stranice
Back to top
View user's profile Send private message Send e-mail Visit poster's website
macros



Joined: 03 Jan 2004
Posts: 23
Location: Zagreb, HR

PostPosted: 06.08.2006 13:23    Post subject: Add user to your forum ignore list Reply with quote

Kak u *.js fajlu mjenjam encoding? Confused

_________________
Es gibt nichts stilleres als eine geladene Kanone. - Heinrich Heine
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 06.08.2006 13:32    Post subject: Add user to your forum ignore list Reply with quote

U text editoru negdje pod Document ili Document Properties nađi Encoding ili Encoding Type... najbolje je staviti na utf-8 w/o BOM sve fajlove

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
macros



Joined: 03 Jan 2004
Posts: 23
Location: Zagreb, HR

PostPosted: 06.08.2006 14:13    Post subject: Add user to your forum ignore list Reply with quote

Fala ljudi, radi...

_________________
Es gibt nichts stilleres als eine geladene Kanone. - Heinrich Heine
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group