Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

militiaware

@militiaware
About
Posts
160
Topics
108
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ActiveX read file path
    M militiaware

    That was long time ago. As I can recall, You have to use a direct path and not relative!

    Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development question com

  • localization - Browser's language and javascript
    M militiaware

    Do you know anyway to override the value of the sent parameters by the browser to the server. for example the browser sends to the server with each request a parameter called "accept-language" or "language". So, the web application will know the language of the browser. I want to change the value of "accept-language". Im not sure if that's possible? Any Ideas ?? Regards, Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development help javascript sysadmin

  • localization - Browser's language and javascript
    M militiaware

    hello fellows, I'm facing a problem with localization. You know each time the browser create a request, it will send its language (en, en_us, ..etc) with the it where the web application can determine the language of the client and send the proper response. Now, what i want is to play around with this option on the client-side not from the server-side. And I want the language option to be displayed as a choice as a select-box on login page. My first option (as i think) is to modify the browser's language using javascript when the user select (event) a choice from the select-box. My second option is to override the value of the header "accept-language" using javascript also. Until now I couldn't know it those two options are possible or there's any other choices. I really appreciate it if you can help Regards, Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development help javascript sysadmin

  • localization - Browser's language and javascript
    M militiaware

    hello fellows, I'm facing a problem with localization. You know each time the browser create a request, it will send its language (en, en_us, ..etc) with the it where the web application can determine the language of the client and send the proper response. Now, what i want is to play around with this option on the client-side not from the server-side. And I want the language option to be displayed as a choice as a select-box on login page. My first option (as i think) is to modify the browser's language using javascript when the user select (event) a choice from the select-box. My second option is to override the value of the header "accept-language" using javascript also. Until now I couldn't know it those two options are possible or there's any other choices. I really appreciate it if you can help :) Regards, Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development help javascript sysadmin

  • extension and Plugin
    M militiaware

    Thanks for the reply Mike, but I said "Firefox" for example I'm asking in general. :) Other programs have extensions and plugins. Is there a definition for this or criteria? Faris Madi Nothing Comes Easy (N.C.E.)

    IT & Infrastructure tutorial question

  • extension and Plugin
    M militiaware

    Can you define "extension" and "plugin" and the differences between them for Firefox program for example? Faris Madi Nothing Comes Easy (N.C.E.)

    IT & Infrastructure tutorial question

  • Performance Issue
    M militiaware

    As performance issue, what is the appropriate approach to write a code which select records from the database into array and then filter them or filter the data while running the query on the database. In other words, Does running mathematical operations and filtration (like WHERE ..) on database side better than doing it on the application side?

    Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development database question data-structures performance help

  • mysql error and php header
    M militiaware

    yes, I'm logging it into a file using error_log() function. Faris Madi

    Web Development help php database mysql com

  • mysql error and php header
    M militiaware

    I got this weird problem 1....mysql_query("run a query"); 2....check if mysql_query fail 3....yes fail 4....log the mysql_error 5....redirect using "Header('Location: http://mydomain.com');" 6....else (query success) 7....redirect using "Header('Location: http://yourdomain.com');" the problem is in line 5, php will not redirect because there's line number 4. If we removed line 4, the page will redirect correctly. in this case there's no error on the log files. can someone help me out? thanx :confused: Faris Madi

    Web Development help php database mysql com

  • ActiveX read file path
    M militiaware

    I have two files: scriptfile and file.txt and both in the same level in the scriptfile i call: fh = fopen("c:/folder/file.txt", 0); now my question is can I use a relative path? because the location of the file is changeable ... I tried "./file/txt" and "file.txt" but didn't work Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development question com

  • Rotbots.txt
    M militiaware

    I've a special case, and am not sure what i did is right. The special case is: i have this uri one : http://www.mysite.com/file?a=Hi and uri two: http://www.mysite.com/file?a=Hi&b=welcome how can i exclude the page when the variable b exist in the uri. what i did is: ****************************************** Disallow: /file/?b ****************************************** and a and b is a variables. any suggestions please! Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development question com

  • onclick load js file
    M militiaware

    Sorry for not being clear! actually the code is like this function load(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', script_filename); html_doc.appendChild(js); return false; } and: now, on click the extrnal js file loaded and running fine on firefox, ie7, opera, but not on ie6 in ie6 the js file seems to be trying to load.... when i add the alert after the appendChild statement, the problem disappear and the external js loads. Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript help html tools

  • onclick load js file
    M militiaware

    why this is wont work on ie6 1...var html_doc = document.getElementsByTagName('head').item(0); 2...var js = document.createElement('script'); 3...js.setAttribute('language', 'javascript'); 4...js.setAttribute('type', 'text/javascript'); 5...js.setAttribute('src', script_filename); 6...html_doc.appendChild(js); 7...return false; there's no error... and the strange thing is when i add a nalert statement after line 6, it works fine... i need help! :~

    Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript help html tools

  • JavaScript and I/O
    M militiaware

    does the javascript provides an access to a file in the client side (not cookies) for example the client wrote a message in the textbox and he wont to save the text in a file in his machine (that means the operation will be done if he permit it) ... and i want to provide this service by clickin on a button for example...and the js shall create a file in his machine and flush the txt into the file... So, does JS? Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript tutorial question

  • IE with JS
    M militiaware

    I get it. i made and escape function that comverts the illegal characters to other format like & to & ..etc

    Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question

  • IE with JS
    M militiaware

    if this is an illegal code... so how can be this code run on IE: document.getElementById("test").innerHTML = String.fromCharCode("0x003D"); and this is not: document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ???? Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question

  • IE with JS
    M militiaware

    what you mean too close Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question

  • IE with JS
    M militiaware

    i found something strange in the IE with the javascript and here is the case: open this code with firefox and you shall see this character: (<) and then try it on IE and you will see nothing. the ie (i think) doesn't know this hexa, if you change it to other like 0x003A ,B or D...it will work fine...but not C --------------------------------------------------------------------------------------

    123

    document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ---------------------------------------------------------------- why? and what is the solution? Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question

  • read js file
    M militiaware

    actully i don't have enough imformation about the script or the function name. all i got is a link to the script where i can pass my parameters for example: and the returned result shall be displayed where i script line found. and what i want to do is: i have two scripts: if the first script did not return anything, then i should call the second script, and vice versa... Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question tools

  • read js file
    M militiaware

    ex:

    now here: i want to check if the javascript file returned something or not on the same page. i.e: alert(document.getElementbyId("hi").innerHTML); here the alert will show this: "" now, How can i get the value that returns from the script file??

    Faris Madi Nothing Comes Easy (N.C.E.)

    Web Development javascript question tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups