Program A Language Protocol Compatibility Patch For Multiple OS?
Mar 20, 2009
I need to program a language protocol compatibility patch for multiple OS'. I don't know where to start, I'm new to programming BUT at least I know what is needed. If anyone is willing to help, I'm willing to elaborate.:thumbsup:
What is the correct way to work with multiple language JavaScript files? So how to use your PHP language variables in your JavaScript files? The way I do it now is create JavaScript files like 'script_js.php' like this:
This is really more a IE issue than jquery but I am using jquery.
Has anyone used this setTimeouts method from the IXMLHttpRequest2 object from IE.
I want to monkey path jquery calls with this call below. I tried this and I still get a property method error even though the method seems to be available. Has anyone experienced this?
With this Javascript code, I get this error "Object does not support this property or method" error. I checked that the methods are available and I do a check that the method is there. Am I sending the wrong number of args? Has anyone used this?
I'm making an Intranet site for someone who is not very familiar wit making websites, thus I would like to make it as simple as possible fo her when she needs to update it.
The intranet site uses frames - one menu frame that is always present and one frame into which the content is loaded. The intranet sit features many, many links to both internal and external pages - i internal pages within the intranet and external pages on the interne (http://)
What I would like to do is make it so that if a link is internal, th content will load into the content frame and the menu frame will remai at the side, but if the link is external, it will load the target int the entire browser window. Using HTML, this would simply be a matter o stating the href and then target="content_frame" for internal pages o target="_top" for external pages.
But, like I said, I am making this site for someone who is not familia with linking targets and even if I told her to define the targe whenever she makes a link, she'd probably forget or get confused an then wonder why external pages are loading with the intranet menu fram still present or why intranet pages are loading with no menu at th side!
While I have good experience with HTML, I am fairly new to JavaScript which is why I am here asking for help.
I understand that Javascript can detect the protocol of a link, believe you would use "link.protocol". In basic terms, what I woul like to do is:
if link.protocol = "http://" then target="_top" els target="content_frame"
But since I'm not familiar with the precise way of coding JavaScript, would just like some help with transforming this into correc JavaScript code so that it will work.
here is some code that I am working on to load styles into a page depending on the protocol of the URL. It seems to load the .css files correctly in FF but in IE I get an "document.head is null or not an object" error.
Here is the code:
window.onload = function(){ var protocol = document.location.protocol; var ref = document.createElement('link');
I am making a site and I have an SSL certificate installed in the hosting. The problem I have is that any body can enter in the site's directories/files with https and also with http protocol :eek: .
I do not know how to do, so when some body try to open the directories/files with http the site is opened only with https protocol. With .htaccess, javasript, php, ??????
The previous developer who has been working here used javascript on some forms and they're not functioning properly when opened with IE (any version)
The link to the form: Quote: http://www.avis.com.lb/reservation-inquiry?group=%27Group+V+(e.g.+Renault+Kangoo)%27&cor=%27Lebanon%27&corofres=%27LEBANON%27&hr=%2709%27&monthcoll=04
On firefox, it doesn't prompt any error and as you can see, it auto selects "Lebanon" as a country and it selects the date with 3 days in between till the return date. These don't work on IE, it just shows blank.
If I want to detect a user's language, so that I can change some text to suit them, how do I do that in Javascript?
Or aren't modern browsers supposed to be able to cope with more than one language on a page, separated somehow by language identifiers, and display only the appropriate text? Maybe I was dreaming when I read that.
Is there an easy way to detect the local language settings of a client browser or system?
I want to for example determine if the users browser or system is set to English, French, or Italian and display a message in the appropriate language.
I am considering writing an online graphing utility. I plan it to be of good quality, such that an undergraduate university student can print it out and include it with a lab report. Data points will be entered, having been generated by another program; the utility will NOT accept functions for plotting--just the data points.
As far as I know, Javascript does not provide graphing functionality. Could somebody in this group please let me know what the best language to use for writing this utility.
How to and in which memory variable read the 'Preferred language', and make another HTML page call based on this value ? A HTML instruction, a JavaScript or a jQuery instruction ? Which one ?
How can I detect the language of a website through javascript? (ex: if i visit lefigaro - french news - the javascript to 'tell ' me we have french in it).
I have below code to change a textbox language that works fine in IE but i want to write for firefox.i have tried e.which instead window. event. keyCode for firefox but it seems to be read only.[code]
I want to detect input language of client. so i tried in java script with(navigator)it dosent work for my perpose i also used ( HTTP_ACCEPT_LANGUAGE) it return system language not keyboard language?
I am trying to develop a form that will be used to place orders. The form contains a table that has 1/2 dozen columns. Three of the columns are named: Item-Name, Quantity, and Price.
Item-Name and Price are literals (readable only). Quantity is a number the user will enter. Multiple items can be selected.
At the bottom of the table, I would like to have a box called "Total". In HTML, is there a way to do arithmetic functions? In my case: QUANTITY times PRICE and add the amount to whatever was in TOTAL. If it can't be done using HTML, is there any script language I can use within the HTML page?