I am currently using the code below to load images but I want to show some kind of loading gif before the image loads completely.
$('#addimage').attr('src', src[i]);
$('#addimage').show();
Since I am using this in a animated mediabox the image loading in blocks does not look good so by the time the image is loading I want to replace i...
I am using jeditable fairly simply and it all works fine, updates the database, etc. The only problem I have is after the user types the new value data and hits enter
it doesn't update the field in the browser to show the new value - instead it puts "Click to edit..." in place of it.
Am I missing something like a return value from my ph...
I have a form where users can query about two different regions. Form elements for region one are shown by default when the page first loads, while form elements for region two are hidden. I have a select box where users can choose which region they wish to query about, and a bit of JavaScript to show and hide different portions of the f...
Hey, I'm wondering how I can get the class names dynamically using jquery for the script below.
The HTML output looks like this:
<div id="main-info-1" class="maini">
<p>this is a paragraph.</p>
</div>
So, I'm trying to get the class name dynamically instead of hard coded like it is above.
There are two parts where I need to get...
Hi Everyone,
I am wondering how to simulate Class Inheritance in JavaScript. I know class doesn't apply to JavaScript, the way we use is Functions to create objects and do the inheritance things through Prototype object.
For example, how do you convert this structure into JavaScript :
public class Mankind {
public string name;
...
I'm sorry that I can't find a property title of my problem.
I wrote a simple web page and some javascript to insert table row and delete it. Now my problem is when I delete the last inserted row, the second cell of the first table row's width became zero in IE6. Anyone can give me some advice? Great thanks.
<html>
<head>
<meta http-equi...
Hi All,
I am pretty new to javascript so I hope someone here can help me out with this little task.
I currently have two input text fields that I need to be populated with text after selecting an option from a drop down menu.
For example...
I have a select field that looks like this:
<select id="select_2" onchange="insertProduct(2);...
I want to build a widget like uservoice that it lays on the left side or right side of the page. And when user click the widget, a dialog will popup and user can do anything we provide.
Is there an exist open source project to implement this widget?
...
how do i save the output from javascript function to mysql??
var macs = {
getMacAddress : function()
{
document.macaddressapplet.setSep( "-" );
return (document.macaddressapplet.getMacAddress());
}
}
document.write(macs.getMacAddress());
someone told me to use ajax, but ive tried to figure ...
<input onclick=".." />
I mean,bubbling phase or capture phase?
...
Hi, I'm aware of several flash-based commercial implementation like flashpageflip. But I'm wondering if it possible to achieve without using flash?
Any help will be much appreciated. Thank you.
Agung Indrawan.
...
How do I pass context into setTimeout? I want to call this.tip.destroy() if this.options.destroyOnHide after 1000 ms. How can I do that?
if (this.options.destroyOnHide) {
setTimeout('this.tip.destroy()', 1000);
}
When I try the above, "this" refers to the window.
...
How do I grab the value from an input box as its being entered?
...
Apparently i try to save the data into the mysql, but it didnt work.. Anyone help?
create_users.php
<form method="post" action="checkAvailability.php">
<script>
var macs = {
getMacAddress : function()
{
document.macaddressapplet.setSep( "-" );
return (document.macaddressapplet.getMacAddress());
}}j...
I am using JQuery to append large amounts of text inside a tag. I find the more text currently within the tag the slower appending is, and for large amounts of text it is too slow.
Is there a more efficient way to append text? Such as for instance creating dummy child tags and setting the content of them rather than appending to the par...
var str = '0.25';
How to convert the above to 0.25?
...
Hai,
I have a php project , which contain a form named contact us , In this when a user submit that form a mail has sent to the administrator.. My aim is to design this page as dynamic. I mean ,the admin can add or change the fields in contact us page. I have implemented a text editor to do this. here the admin can design the contact pa...
Hi,
Onchange of select option I am confirming the user whether to save or not the changes. If user selects OK , I am submitting the form automatically.ie. onchange="if(confirm('Save?')){this.form.gridedit.click();} ". When user selects cancel it is populating the recently selected option. My problem is I have to populate the old value ...
I have a plain(no fancy frameworks) javascript, which, on the submission of a form element, asks the user a question. If the answer returns true, then the script sets the form's action to a certain URL (which has some server-side logic inside it) and calls the sumbit method of that form. Or at least, in theory, thats what its meant to do...
i need to return a boolean value frm java script to jsp page....
can someone help me??
...