Click here to Skip to main content
15,894,017 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: What is the best browser for development? Pin
Perspx13-Nov-08 10:23
Perspx13-Nov-08 10:23 
AnswerRe: What is the best browser for development? Pin
Paul Tumelty6-Nov-08 6:27
Paul Tumelty6-Nov-08 6:27 
AnswerRe: What is the best browser for development? Pin
Shog96-Nov-08 7:26
sitebuilderShog96-Nov-08 7:26 
AnswerRe: What is the best browser for development? Pin
Paul Conrad6-Nov-08 8:15
professionalPaul Conrad6-Nov-08 8:15 
AnswerRe: What is the best browser for development? Pin
Rage13-Nov-08 2:51
professionalRage13-Nov-08 2:51 
QuestionCreating toolbar for Internet Browser with C# ? Pin
Mohammad Dayyan6-Nov-08 4:45
Mohammad Dayyan6-Nov-08 4:45 
AnswerRe: Creating toolbar for Internet Browser with C# ? Pin
Paul Conrad6-Nov-08 8:17
professionalPaul Conrad6-Nov-08 8:17 
QuestionProblem with setAttribute function (creating new attributes) Pin
skribbs6-Nov-08 4:18
skribbs6-Nov-08 4:18 
Alright please let me know if this is even possible.

I'm trying to load a javascript using javascript but I need some unique attributes.

Heres what I want:


Heres what I'm doing:
//I have a simple javascript file that gets loaded when the body loads, theres an 'init()' function that gets called and heres whats inside it:

init(){
var head = document.getElementsByTagName('head')[0];
var tag = document.createElement('script');
tag.setAttribute('type', 'text/javascript');
tag.setAttribute('src', 'coolPlugin.js');
tag.setAttribute('for', 'CoolPlugin');
tag.setAttribute('event', 'specialEvent(methodName, parameters)');
head.appendChild(tag);
}

What supposed to happen is that the event reacts to a key press (lets say when the user presses '1') and the font changes colors

From what it looks like, the 'for' and 'event' attribute dont seem to get appended.

Please let me know if you have any comments, suggestions, ideas, or any incite on solving this problem.

Thanks
QuestionChanging icon in alert box Pin
J H Beggs6-Nov-08 3:27
J H Beggs6-Nov-08 3:27 
GeneralRe: Changing icon in alert box Pin
cyber-drugs6-Nov-08 4:14
cyber-drugs6-Nov-08 4:14 
QuestionCustom Control with different Templares... Pin
Ponzano Paolo6-Nov-08 3:26
Ponzano Paolo6-Nov-08 3:26 
QuestionSharepoint Web Part refreshing problem Pin
nishantkainth6-Nov-08 1:30
nishantkainth6-Nov-08 1:30 
QuestionProblem with Validation controls Pin
S.Aijaz6-Nov-08 1:26
S.Aijaz6-Nov-08 1:26 
AnswerRe: Problem with Validation controls Pin
Paddy Boyd6-Nov-08 2:25
Paddy Boyd6-Nov-08 2:25 
QuestionASP error Request object, ASP 0107 (0x80004005) on submitting a form Pin
Rajiya6-Nov-08 0:30
Rajiya6-Nov-08 0:30 
QuestionFunction keys using asp.net Pin
sram155-Nov-08 22:57
sram155-Nov-08 22:57 
AnswerCP IGNORE: Cross post three forums Pin
leckey6-Nov-08 10:05
leckey6-Nov-08 10:05 
QuestionHelp: Flash Problem Pin
UpdateMe5-Nov-08 19:09
UpdateMe5-Nov-08 19:09 
AnswerRe: Help: Flash Problem Pin
Paddy Boyd6-Nov-08 2:26
Paddy Boyd6-Nov-08 2:26 
AnswerRe: Help: Flash Problem Pin
sph3rex8-Nov-08 15:47
sph3rex8-Nov-08 15:47 
Questionhow do open PDF file using Javascript ??? Pin
koolprasad20035-Nov-08 18:10
professionalkoolprasad20035-Nov-08 18:10 
AnswerRe: how do open PDF file using Javascript ??? Pin
Perspx5-Nov-08 20:06
Perspx5-Nov-08 20:06 
GeneralRe: how do open PDF file using Javascript ??? Pin
koolprasad20036-Nov-08 1:19
professionalkoolprasad20036-Nov-08 1:19 
GeneralRe: how do open PDF file using Javascript ??? Pin
Saul Johnson6-Nov-08 9:14
Saul Johnson6-Nov-08 9:14 
QuestionProblem with Ajax Dropdown extender Pin
jo24055-Nov-08 6:29
jo24055-Nov-08 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.