trying to put a file path in javascript. it is a pain
\ is an escape character and it always kill the character after the backslash
what i am doing is this
i am trying to add the file path from a jsp view object attribute
window.open("file"+<c:out value="${filePath}" />+fileName);
but if there are backslash in the end of filePath,...
I am running into the following issue which has really got me stumped:
I have
function SystemList(UID)
{
this.refreshData();
}
SystemList.prototype.refreshData = function()
{
this.systemDataObj({}, $.proxy(this.readSuccess, this));
}
When I try and run this, I get the following error: Uncaught TypeError: Object # has no method ...
How do I get a time countdown using PHP?
I want to display something like 3Days 4Hours. I have a date field coming from MySQL table and want to calculate it with today's date. As of now I have only date and not the time stored in the database, but eventually I will. So at that time, I might show as 3Days 4Hours 10Minutes 43seconds.
Th...
I am a JavaScript learner and have been researching this matter, but with no success. What is the $ symbol used for in JavaScript besides regular expressions? Any resources or readings regarding this would be appreciated. Thanks.
...
I didn't know you could do this until I had banged my head against the wall on a troublesome bug and finally figured out we were failing because some jquery plugin had overwritten the escape function. So this will put up an alert and docwrite null:
escape = function(a){alert(a)}
document.write(escape("Need tips? Visit W3Schools!"));
C...
hello.,
i would like to retrieve fullpath of a file and pass it to javascript..
the requirement is that i need to retrieve xml file using javascript.
...
I would like to know if there's a way of automatically minify html, css or javascript files.
So that each time I save the "source file" Vim automatically make the same changes to a minified version of the file (or automatically creates or override a minified version).
Something like this:
Source:
// The -is- object is used to identif...
I have a text input field in my web page that I am using to collect a date (via the jQuery Tools .dateinput). The user does not need to be able to type into the field. A dialog box appears when the field is clicked on. This is a problem on my Motorola Droid, because I don't want the soft-keyboard to appear when the field is clicked.
I h...
Just a quickie..
If I set on an alert document.title to "ALERT" per say.
Then want to set it back afterwards is there an ezmode way to do this or will it be setting an ID on the link tags to set the title back to the ID. Note its an external script that is used on 20+ pages.
...
Hi,
I got an object tag (generated by SWFObject) which I'ld like to modify width and height properties on window resize with mootools library.
With a :
$('my_object').set({ 'width': new_width, 'height': new_height });
everything working fine in a firefox, chrome and others.
Unfortunately, Internet explorer (7 & 8) don't see it the ...
Hi,
Is there a way to push the browser back to the top of the page when a link is clicked? I am dynamically changing some content but the project needs the user to start at the top of the page when the new content is loaded.
I am already using the url hash tag to keep track of the history. Just looking for some type of javascript funct...
I am using javascript for opening a new window when clicked on the link.
I want that the new window should dispaly the address bar but the value of that bar should not change.
Can i do that?
the script code i am usng is:
="Javascript:void(window.open('help.aspx?ID=" + Fields!ID.Value +"','mywindow','_self','width=500,height=500'))"
...
The superbox is a jquery plugin that has lightbox effect. My problem is how can I change this thing instead of click, it will automatically loads when the page is executed. The code rel in <a> is required. How can I set that to onload or automatically popup when I visit the page.
My Code:
<link rel="stylesheet" href="css/jquery.superb...
I have an array in javascript that contains the following:
["Value 1", "Value 5". "Value 10", "Value 11"];
How would I go about sort this array so that it does not appear as follows:
["Value 1", "Value 10". "Value 11", "Value 5"];
But as:
["Value 1", "Value 5". "Value 10", "Value 11"];
Any help would be great.
...
I'm using a form to record data in my database using AJAX. So, how this works? I get the form data via Javascript, request a URL which is written in PHP then insert to the database.
The problem is that I'm using Latin 1 characters so the form is expecting also accented characters like ó. I need to convert this ó to html (ó) in ja...
Hi,
I am using strong typed views in my MVC and have now manage to show all the editors for my register form as I like.
The problem is that I have a radiogroup containing 4 radiobotton, When selecting a radiobutton I neet to hide some of the editors that are bound to the strong typed propertie fields.
I could create a javascript funct...
Hi!
I have an url-encoded url (so with & replaced to &), but I want to replace all the occurences of & back to & using javascript. Currently I'm using myStr.replace("/&/g", "&"), but that doesn't work (replaces nothing).
Thanks,
Lex
...
I am trying to display an error to the user of a web page using a javascript alert popup, I currently have the following code to clean the error string:
errorMessage.Replace("'", "\'")
But this is not sufficient as some illegal characters are not being removed, is there a static method somewhere in the framework that will format my st...
Hai
I have a select input field in multiple properties. I have to validate( empty check) this field in both JavaScript and php .My code is like "select multiple="multiple" name="frm_supply[]>"
Does any one help me?
...
Hi,
I am having two forms for example login and register.
In login page i am having two fields namely username and password.
In register page i am having fields namely firstname, lastname, username, dob, and password.
Here we can able to validate the above forms using two different javascript methods.
My question is :
Is that possi...