Hi
I was working on customization of gmap infoWindow.
I wrote the following code..
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAWFxfdA2Gu9LJMJw80x2tKhQhoncwM0SGfm1Opx_70t50wOiSWxRz3mt77PVPCsnMPENBxlx9FaX5AQ"></script>
<script src="javascript/extinfowindow.js" type="text/javascript"></script>
<...
Hi everyone,
I have page 1 (P1) contains an iframe point to another page (P2).
All javascript codes reside on P1.
After i "close" P2 in anyway, i want to refresh the current data on P1
For example: P1 contains a list of data, P2 is the edit page to let user edit any data.
After P2 is closed, i want to reload the P1. But, the error is ...
Hi There,
I've added a tooltip feature to my application because parts of the ordering system can be confusing to some of our newer users, it's simple jQuery:
$(document).ready(function(){
$('input, select, textarea').focus(function(){
$class = $(this).attr('title');
$('.tooltip_' + $class).fadeIn(500);
});
...
How to reset date Type for Compare Validator in ASP.Net
i am using the dd/MM/yyyy format for the Calendar Extender of a textbox, where as Compare Validater looks for MM/dd/YYYY format.
so how to change date format of Compare Validator.
...
I am looking at the best way to take advantage of the MVC validation while using Ajax and not having access to a class.
On my masterpage it will contain a simple form (name, email, tel, comments) which I display in a overlay. As this is in the masterpage is available on any page, The masterpage never inherits a class like you would do w...
hi, i have this working code
index.php
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("form#submit").submit(function() {
// we want to store the values from the form input box, then send v...
I am about to write a voting method for my site. I want a method to stop people voting for the same thing twice. So far my thoughts have been:
Drop a cookie once the vote is complete (susceptible to multi browser gaming)
Log IP per vote (this will fail in proxy / corporate environments)
Force logins
My site is not account based as ...
Hi guys,
I am trying to retrieve some data from a database using jQuery's $.getJSON method to display in a table, but for each user who's info I get, I have to get the many related systems related to that user, which requires a second $.getJSON call nested in the first, which I have tried turning into a function, which seems to be work...
Background:
2 minutes before every hour, the server stops access to the site returning a busy screen while it processes data received in the previous hour. This can last less than two minutes, in which case it sleeps until the two minutes is up. If it lasts longer than two minutes it runs as long as it needs to then returns. The block is...
$.get('http://localhost/a.bb?cmd=<abc></abc>', function(data) {
alert('result comes back.');
$('.result').html(data);
});
);
Above is the code I want send to server, why jquery send OPTION for me? I want GET method.
Thanks.
...
Update: This works in firefox, but does not work on chrome 6, still investigating.
I'm taking an internet programming class and learning various javascript frameworks. I'm working on a mootools problem, and the .get('text') method does not appear to be working as expected on responseXML.
Here's the responseXML:
<?xml version="1.0" en...
Hi guys, I'm trying to remove a row from a table when I click a specific row column. I'm using .live() so that I can remove rows added from a ajax request. It works fine, my problem is, the table comes from php with two rows, I can then insert new ones and remove them, but when I remove one of the rows that came with php, it remove all r...
It looks like jQuery's .ajax function fires the 'success' function even when it gets no response from the server. I'd consider this an error. I detected this event by checking to see if the 'request.status===0', are there any other instances that I should check for where the 'success' function will be fired even if there is an error si...
I have an AutoCompleteExtender in my ASP.NET which works great so far. I have a few little niggles I'd like to sort out though:
1: Is there a way I can limit the user to only being able to select an item from the list, and not use their own text? So they can't search for something that isn't autocompleted.
2: Is there a way to always h...
var options = {
series: {lines: {fill: true, fillColor: "rgba(255, 255, 204, 0.5)"} },
xaxis: { mode: "time", timeformat: "%d %b %y", minTickSize: [1, "month"]} ,
yaxis: { max: 50000}
};
var d3;
var plot;
$(document).ready(function(){
d3 = <?echo $balarray;?>;
plot = $.plot($("#placeholder"), [d3],options );
$(...
I'm building a rudimentary ajax calendar using jquery and colorbox. Here's the link to the site in progress:
http://208.79.237.222/calendar/
When a user clicks on a link in the calendar controls, a script requests that page via ajax and updates the calendar.
The issue I'm having is with the pop up links in the calendar table. When you...
Hi !
Here is a code (using jquery) i use to download a html file from which I extract a table and its content.
var url = $('#url').val(); // url to access
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
var frame = $('<iframe/>').css('display', 'none').attr('src', url );
frame.appendTo('body')
.load(function() {
...
I am using ajax to load pages on my website.
Each time a page is loaded I change the url in the browser to
http//www.example.com/old/page/#!/new/page/
by setting it through window.loaction using javascript
Now what I want to do is when someone comes to my website by entering the url
http//www.example.com/old/page/#!/new/page/
he s...
I'm fairly new to RoR and recently started learning BDD/Rspec for testing my application. I've been looking for a way to spec an AJAX request, but so far I haven't found much documentation on this at all.
Anyone know how to do this? I'm using rails 2.3.8, rspec 1.3.0 and mocha 0.9.8 for my stubs (which I'm also in the process of le...
I have such view:
<h1>Ajax show</h1>
Click this link to show the current
<%= link_to 'time', {:action => 'time', :update => 'time_div'}, :remote => true %>
<div id='time_div'>
</div>
Controller:
class PagesController < ApplicationController
def formula
end
def time
render :text => "The current time is #{Time.now.to_s}"
...