i have a form with a textarea and a button. if the button is clicked while the textarea is empty, the form will reload and generate an error message. otherwise, the form will redirect to another page. now, i integrated a jquery dialog box. when the button is clicked the dialog box should appear and ask a yes or no question. the problem i...
My columns are showing up, it is generating an anchor for my link. The only problem is the url is badly formed for MVC
Here is the colModel:
colModel: [
{ name: 'RegName', index: 'RegName', label: 'Region Name',width:90, align: 'center' },
{ name: 'AccessNbr', index: 'AccessNbr'...
How can I have two lists (div or table elements) in which I can drag & drop items from one to the other (I think jQuery droppable does this), but without actually removing it from the source list?
Example:
List1 List2
AAA 111
BBB 555
CCC 999
DDD 777
Now I'm dragging BBB from the left to the right between "55...
I've been thinking/searching for an equivalent of the problem that I am having below, and nothing could be found.
Is there a way I can rewrite this to work with jQuery as an alternative?
First half of the code.
<a href="link.php?test=true" onclick="request(this)" target="_blank">
<a id="step2" href="javascript:alert('NOT FINISHED!');...
I would like to create table inside a div element
On my .html file, I have this
<div id='div1'> </div>
On my js file, I want to place new table with rows and with data
How can I implement this?
...
I've scratched my previous attempts at changing an ID attribute. Is there a way I can make the content below auto load if the requests === 0? Rather than having a click function.
<script language="javascript">
var requests = 10;
function request(self)
{if(self.href != "#")
requests -= 1;
if(requests === 0)
var pageid = function () {
...
I am trying to use jquery or jscript to click a hidden button and I always get
"Microsoft JScript runtime error: Object expected" error.
I have tried all of the following (all with the same results):
$('#btnCompleteHidden').click();or:
$('#btnCompleteHidden').trigger('click');With plain JavaScript:
document.getElementById('btnCompleteH...
Hey all,
I have a CustomValidator, RequiredFieldValidator and ValidationSummary controls on an aspx page to check the current password and make sure the new password is not blank.
When I click submit I get the js alert() box from the summary control telling me about just the RequiredFieldValidator being false, but the client script for...
Suppose it's in a.html.
How to change url to b.html with jQuery?
...
I've looked through simiilar questions on SO, but can't seem to find one addressing what seems like a simple call..
function TweetThis(url)
{
$.ajax({
url: "http://tinyurl.com/api-create.php?url=" + url,
cache: false,
success: function(data){
alert(data);
}
});
}
Basically I want to call TinyURL ...
Okay this is frustrating me to no end. I recently coded a page in JS for a buddy of mine who wants to display wedding pictures to a family to see which ones they'd like to purchase.
I used a for loop to count 1-904:
for (beginnum=1;beginnum<=904;beginnum++) { yada yada...
Then, I used adobe bridge to rename the camera files to be 1-9...
Server side:
....
$_SESSION['accountId'] = $accountId;
$_SESSION['type'] = $_POST['accountType'];
echo '1';
return;
Client side:
$.ajax(
{
type:'POST',
data: $("#flowFormSubmit").serialize(),
dataType:'text/plain',
timeout:1000,
success:function(response){
if(-1 == response)
alert('fail...
I have a php page that is returning some data in json. Basically I am doing echo on this page.
The data being returned has some html tags. This is causing my jQuery code to break.
Is there a way to clean up the data and strip off the tags before putting it in the json object?
Furthermore, I am trying to display the data from json in...
<select id="target">
<option value="1">...</option>
<option value="2">...</option>
</select>
...
On my site I have a few strings which look something like this (Could be any numbers)
29-30-404-59556348
Using jQuery I want to parse this into
<a href="http://www.mysite.com/page.php?=29,30,404,59556348">Page</a>
How would I do this?
...
$input.disabled = true
or
$input.disabled = "disabled";
Which is the standard way?
And,reversely,how to enable an input?
...
Hello all,
I'm totally newbie on JQuery, I checked docs.jquery, searched on google, asked to friends, and still couldn't find the solution :(
I've a DIV with id=EMail. It includes a paragraph (<p>Please enter email...</p>) and a form (<form></form>).
When visitor enters his/her email address to form input, and presses "Send" button, JQu...
The first letter you enter creates a pull-down menu of all items in a database that start with that letter...
...
I am using jquery in my php web page. I want to find the location of a textbox or button in a page. Please give me a sample jquery to find this. Please provide with any suggestions u have. Thanks in advance.
...
I'm a bit stuck on what is probably a common situation, but can't find much in the way of solutions.
I'm passing a single int parameter to an MVC controller method, expecting a Json response back. Problem is, the parameter, while being populated at the client end, is not being recognised at the server end and is being interpreted as nu...