With jQuery 1.2.6 I would do the below and all was well
$("#element").bgiframe();
But the only examples I have seen working with jQuery 1.3.x (shown below)
$("#element").bgiframe = true;
But the above does not work ... so does anyone have a new plugin to do this type of thing?
EDIT: I'm using this plugin outside of jQuery.UI, and...
I am new to javascript and have written a piece of code (pasted below). I am trying to build a little game of Battleship. Think of that game with a grid where you place your ships and start clicking on opponents grid blindly if it will hit any of the opponents ships. Problem is I need to get a function called with the ID of the DIV to be...
I have a site where each user's page shows comments and allows other user's to add comments. I want to have it so the add comments form is on the page and when a user adds a comment, it is added to the database and shows up in the comment section with AJAX. I am using jQuery for the AJAX and LINQ to SQL to handle the database logic. How ...
Hi,
I'm using the JQuery star rating plugin (v2.61) from
http://www.fyneworks.com/jquery/star-rating/. Everything's going
well, but I'd like to disable the stars when a user has voted.
Currently my users select their rating and click the mouse. This
updates my database through an AJAX call. The star rater changes to
show the user's ...
I know that I can call a page method with jquery using the following syntax
$.ajax({
type: "POST",
url: "Default.aspx/GetDate",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Replace the div's content with the page method's return.
$("#Result").text(msg.d);
...
I'm creating some checkbox elements on the fly with jQuery and appending them to a node like so
var topics = ['All','Cat1','Cat2'];
var topicContainer = $('ul#someElementId');
$.each( topics, function( iteration, item )
{
topicContainer.append(
$(document.createElement("li"))
.append(
$(document.createElement("input...
Hi,
I am looking for different ways to present data in gridview that has like 500 - 1000 rows. The grid should support key board navigation. I wrote jquery functions to handle that. But when I am loading 500 rows into the grid, the browser is freezing. I am not sure if I am doing anything wrong with the jquery. I can look at the jquery ...
I'm using CakePHP for a small web app and on one form page there's a dropdown to select a job number. I'd like to update two text fields based on the job number selected in the dropdown using jQuery (I'm also open to using the default ajax helper but I didn't have a lot of success with it).
Here's my jQuery snippet:
<script>
$(doc...
I have a server driven site using php and js. One section displays all photos that our users have uploaded, and an administrator then decides which photos to keep for final presentation. Most of the site uses jquery for inplace edits, yet this task has me stumped. I want to insert a row into a MySQL database table that copies the URL ...
I have a php / mysql / jquery web app that makes 13 ajax queries to various APIs and stores the result in a database table. To each result I assign a score and when all the results have completed I want to display a 'total score'.
My problem is knowing when all the ajax queries have completed and all the results are in and ready to be t...
This page does it the way I want it to: http://www.web-source.net/javascript_redirect_box.htm
But I want to find a better way using jQuery, can anyone point me to a good script that uses jQuery to accomplish this?
...
here's my shop.html snippet:
<li><a id="linkShop" href="shop.html">shop</a></li>
<div id="paneMiddle"></div>
and here's my main.js snippet:
$("a[id=linkShop]").click(function(){
$.get("data1.html", function(response){
$("div[id=paneMiddle]").html(response);
alert("hi"+ response);
});
});
data1.html has this content:
<p>dat...
Hi there,
I've been looking at the plethora of horizontal accordion scripts on google.
for example:
http://www.leigeber.com/2008/05/horizontal-javascript-accordion-menu/
http://www.nyokiglitter.com/tutorials/horizontal.html
http://designreviver.com/tutorials/jquery-examples-horizontal-accordion/
All the scripts seem to be made for dis...
Ok, I have a table, made by a GridView, and attached a tablesorter to it, it works just fine.
Then I put it inside an updatepanel, and added the code to rebind it on a postback, here is my script:
function loadEvents() { $("table[id$='gv']").tablesorter(); }
$(document).ready(function() { loadEvents(); });
function reBind() {
if (S...
I'm coming across a bit of an awkward problem. I have a Web page with quite a few buttons on it that need to be disabled and enabled at various points. Now if this were a Swing (or any otehr desktop UI interface for that matter), it would be quite trivial: I would simply add listeners for the model changes I was interested in and updat...
I'm having problems getting UI code to perform at all well in IE.
I have a table - a matrix of values. Each cell can be empty or hold a list of items.
I want users to be able to drag items between cells.
So my HTML looks something like this:
<table>
<tr><td></td><th scope="col">col 1</th><th scope="col">col 2</th></tr>
<tr><t...
Hello.
Heads up: I am quite new to Javascript and have so far only written very basic scripts based on jQuery.
I am a quick study though..
What I am after is a way to:
1) identify tags
2) read the img tags
3) wrap the tag with an <a href> tag with a dynamic link based on the src of the img.
Example:
<img src="../../img_T/Cultur...
Having just upgraded to the latest ASP.NET MVC Release Candidate I noticed that, when using Html Helpers, any name with a period "." in it will have this replaced by an underscore "_" when the element's ID is output.
I believe this is to aid in using JQuery and the use of the period is to aid in the use of ModelBinders. This has broken ...
Hi, i like to get an <ul><li> and make it a nice table I will style with CSS.
I like the transformation to be made with jQuery
* Place|Name|Earning
* 1|Paul|200$
* 2|Joe|400$
* 3|James|100$
* 4|Carl|1000$
on and on....
and make a table head with the first line of the <ul> and table cell with the others...
There will be maybe 4-5 <...
Is there a way to get jquery to get information to and from a file...
let say i ask a question and i like to get the answer in a file.. to keep track..
is it possible? how?
...