I have the following text box input code. I do not have access to it to add the default value to it so i used this Jquery code to add the value and then disable the input but it doesn't send the added value. How would I add the value but not allow them to change it. I was going to use "hidden" but I want them to see it just not able to c...
function new_review(){
$.post('restaurant_profile/get_dg_new_restaurant_review', {}, function callback(response) {
alert(response);
}
}
Hi I have a function that does an jQuery ajax post to a controller function. The function outputs a simple string using the PHP echo function.
The function works fine if I don't ha...
Go to http://earldev.tumblr.com
I am using jQuery and I can't get `fadein` to work on a `div`. I want the `div` to fade in on page load. The code I have now is
$('div.sc_menu').hide().fadeIn('slow');
`div.sc_menu` is the `div` I want to fade in. (Its not working, in case you didn't get that)...
I'm now in problem about how to animate function in jQuery to expand proportionally. Normally, it expand one-sided only just like expand to bottom or expand to right.
What I want is to expand proportionally left-right-top-bottom by using animate.
Following is my coding. What I said above, it expand to bottom only.
$(document).ready(...
i have a number of divs with the class="mydiv"
each of these divs also has an attribute id which is set to a number
i want to basically say (pseudo code)
select all divs with class = "myDiv"
loop through them and get the id attribute
combine all ids into a list and return an array of these integers
is this the best way of doing that?...
Please refer to *
When first time enter the arrangement of items is OK(three items as a row), but if I refresh it it will screw up
Can someone point me any direction ?
Thanks in advance !
Edit:
Is there any differences between refresh and using the link to enter ?
Edit:
This problem only happen in Chrome browser
...
Bit of a weird one - bound to see some head scratching and wrinkled noses on here.
Currently developing this scrollable timeline that has users incrementally loading new modules of HTML via AJAX as they pan / scroll, so before long they can end up with quite a bit of markup on the page. As they "zoom" though (i.e. shift the scale of the...
I am using jtemplates with jquery and getting an error when I try to use tables in the template.
Following is working
<ul>
{#foreach $T as record}
<li>{$T.record.FirstName}</li>
{#/for}
</ul>
but the following does not work and gives error $T.record is undefined in firebug
<table border="1">
{#foreach $T as record}
<tr>
<td>{$T....
Hello guys,
I have a DataList containing a list of elements(ASP.Net app).
To delete an item i first used tha classic javascript confirmation.
As i found it ugly,i want to use a confirmation box plugin.
when i click OK==>Delete the item from DB(using a webservice)
But how can i update the DataList.
The situation is liek:
when u add...
This is my code so far:
The HTML:
<form>
<label>First Name</label> <input type="text" class="first" /><br />
<label>Last Name</label> <input type="text" class="last" /><br />
<label>Age</label> <input type="text" class="age" /><br />
<input type="button" class="submit" value="Submit" />
</form>
The PHP:
$first = mysq...
I'm starting to architect a quite complex web application. The implementation is probably going to be done in PHP, though if there are impressive reasons to choose a different environment I might be convinced.
I've looked at tools like Symfony and CakePHP. The problem is that it feels like they're relatively low level for a modern Web 2...
Right now I'm getting this strange behavior from IE where it's not showing my animated gif. I'm trying to show a loading gif during an AJAX request.
function changeToRecorded(){
$('#entries').fadeOut(200,function(){
$('#main').html('<img id="loadingGif" class="centered" src="./pictures/ajax-loader.gif"; />');
$.get("getData.p...
This is a demo dragging on google maps v3,
but ,it can't work good at chrome and safari ,
So , how to change it ?
thanks
...
Hi
I am trying to use the jquery timepicker and have the following issues
I want to show the start time which is in the time zone I am setting it to. I cannot use startTime = new Date() as that takes the system time and if that is different for each user from different location the time is going to be different.
I am trying to allow us...
<form class="follow-form" method="post" action="listen.php">
<input name="followID" value="123456" type="hidden">
<button type="submit" value="Actions" class="btn follow" title="123456">
<i></i><span>follow</span>
</button>
</form>
javascript file:
jQuery(function ($) {
/* fetch elements and stop form eve...
Am I missing something? I'm trying to do a simple ajax call using jquery to a web service on my site and I get a 500 error every time when I make the call from the master page. Has no one ever made an ajax call from a master page or am I just crazy and extremely deprived of sleep?
Example:
MasterPage.master
<script type="text/javasc...
Hello,
My html:
<div id="menu"><ul><li>menu one<ul>
<li><a id="home">home</a></li>
<li><a id="contact">contact us</a></li>
</ul></li></ul></div>
Jquery :
$('#menu').click(function(){
alert($(this).find('a').attr('id'));
});
I want to find value of a clicked. my code return empty.
...
I have a loop that creates a datastring for an ajax call. Here is the code:
$(':input','#texes-test-entry-0').not(':button, :submit, :reset, :hidden').each(function(){
varStr = $(this).attr("id").split('-');
dataString = dataString + '&' + varStr[1] + '=' + $(this).val();
});
For all of the text inputs $(this)....
all i need is some client side code jQuery or JS that will alter the divs style after X seconds
like visibility : hidden; OR max-height : 50px;
or switch the class \ id of the DIV ( preferred )
...
Hey guys,
weird thing right now. i have an iFrame on one of my sites which grabs it's src from one of my other sites. So both belong to me and I can access both. However sameOriginPolicy is always in the way :)
i want to find a solution to autoResize the iFrame depending on it's content. i found a nice autoHeight jQuery plugin that woul...