I would like to implement an input mask on Magento and that requires the use of the prototype javascript library. Has anyone done this and would you be willing to share?
I need to include some kind of notifications in a sidebar gadget, preferably systray popups or sound notifications, so that they can't be missed/overlooked.
Is there any existing JavaScript lib or ActiveX that you could recommend?
Does anyone know a cross-browser CSS/Javascript technique to display a long html table such that the column headers stay fixed on-screen and do not scroll with the table body. Think of the "freeze panes" effect in excel.
I want to be able to scroll through the contents of the table, but to always be able to see the column headers at the top.
I'm hunting a Javascript error related to form submission (more importantly preventing it). I see the error appear in the Web Inspector but it disappears immediately since the form submits and refreshes the page. Is there a console history or scrollback? How can I see what the error is?
I have the following code in Javascript and Jquery:
$("<li />")
.html('Somehtml')
I would like to be able to change the content of .html by using if-else statement. My code should be something like this, however it's not working.
var showinfo = <?php echo '$action'; ?>
$("<li />")
if (showinfo == 'action1'){
.html('Somehtml')
else {
.html('Other html')
}
Any ideas how should I change it?
First of all, I have bound a datapager control to a listview.
I would like to scroll to the first item of the listview control on the DataPager click. I guess by using javascript, but it seems that the datapager does not allow that...
So what option do i have? How can i scroll, onto a specific anchor, when clicking on the DataPager?
Hello,
I'm a bit confused about Javascript undefined & null.
Firstly what does if (!testvar) actually do? Does it test for undefined and null or just undefined?
Secondly, once a variable is defined can I clear it back to undefined (therefore deleting the variable).
Thirdly, can I pass undefined as a parameter? e.g:
function test(var1, var2, var3) {
}
test("value1", undefined, "value2")
Thanks,
AJ
I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to offset the touch so you can see what your painting instead of your finger being in the way.Its built on Html,javascript and css.Any ideas would be greatly appreciated.
http://www.fbshare.net/implementing-facebook-share/
i need to call a javascript function after share has been successfully completed
how can i implement this ?
does anybody know that which function in api is being used by fb-share button
Hi Folks,
I have a scenario in which I have 2 Submit Buttons in a form for going back and forward.
Both the buttons have different JavaScript associated with it. It is working great if we press these buttons to navigate.
But when in Google Chrome, when someone press enter on any of the text box within the Form it does not calls the onClick of the button.
Is there any work around for that.
Thanks
Hi,
i need to get a reference to the FORM parent of an INPUT when I only have a reference to that INPUT. Is this possible with javascript (or else jQuery) ?
function doSomething(element) {
//element is input object
//how to get reference to form?
}
This doesn't work:
var form = $(element).parents('form:first');
alert($(form).attr("name"));
Hello. I have an image on my website. I would like when I click it, it show a , and when I click it another time, it hides the .
How can I do this in JavaScript? Should I use jQuery?
I am writing a small windows script in javascript/jscript for finding a match for a regexp with a string that i got by manipulating a file.
The file path can be provided relative or absolute. How to find whether a given path is absolute/relative and convert it to absolute for file manipulation?
Something wrong with the code?
I could print Hello on HTML but when I add to getPlayerVersion, the whole string doesn't print. What could be problem be? Leaving me feeling frustrated.
<script type="text/javascript">
document.write("Hello"+deconcept.SWFObjectUtil.getPlayerVersion().major);
</script>
I am doing something like this in javascript to print a section of my page on click of a link
function printDiv() {
var divToPrint = document.getElementById('printArea');
newWin= window.open();
newWin.document.write(divToPrint.innerHTML);
newWin.print();
newWin.close();
}
It works great in Firefox but not in IE.
Could someone please help
Im getting SyntaxError: Parse Error, only on safari. Here is the code in question.
<script type="text/javascript">
//
I am using transloadit a jquery plugin. which works on every other page and is loading fine on safari by the looks of it.
The errors is on line 44 which is
export: {
Can anyone see anything wrong with that page?
Hi,
I want to make a fixed column and fixed header on a table with the rest as scrolling text by using CSS.
But not using jQuery, just simple CSS and JavaScript
just like xls
Thanks
Hi,
I am going to create an xml element in javascript to exchange data with server side. I found I can do it with document.createElement.But I do not know how to convert it to string. Is there any API in browser to make it easier? Or is there any js lib incudling this API?
Thanks in advance.
I'm trying to write a script in Greasemonkey that will replace a link's target with something else, but with my limited Javascript knowledge I don't really know how to do this.
Basically I'm trying to find all links containing a certain string of characters (ex: //a[contains(@href, 'xx')] ), and either replace them with another link, or append something to them (replacing 'abc123.com' with 'zyx987.com' or 'abc123.com' with 'abc123.com/folder').
If you could point me on the right path I'd greatly appreciate it.
Is there anyway to get the alt tag to display quicker?
Also, I notice it doesn't show in all browsers. I know I should craft a javascript tooltip but I am looking for something really lite with minimal code.
Hi!
How I can capture browser restore/maximize event in jQuery or javascript? We can use window.onresize but that only tells that the browser is resized NOT. thanks!
I'm trying to display records from a database and then when a new one is added automatically update the displayed records from the database with the new one
I am doing this using php and javascript.
I want to load a page and display tags under a video and then when a user adds a new tag by entering it into text box to add it to the database and then refresh the part of the page which shows these tags and include the new one which has just been added all without the page being reloaded.
Thanks in advance for any help
I want the server to always serve dates in UTC in the html, and have javascript on the client site convert it to the user's local timezone.
Bonus if I can output in the user's locale date format.
I am using a form to "Rate" a page. This form "posts" data to a php script elsewhere. I simply want to display a link after the form is processed which will bring the user back to previous page. Can I do this using javascript in my php script?
GF