Hi, i've been trying to get a confirm box to work, i am using php and jquery to make a confirm box appear when clicking on a delete link, actual code :
$(document).ready(function(){
if (jQuery("a.delete-link").length > 0) {
$("a.delete-link").bind("click", function(){
return confirm("Sunteti sigur ca doriti sa st...
I've started the following skeleton for an ajax/post/update function I'm wanting to write in javascript (using jquery):
$.post("/gallery/resize",
function (data) {
alert(data);
alert(data.complete);
if (data.complete) {
alert("done");
} else {
alert("blah");
}
},
"json"
);
And the response script ...
Hi.
I have a component in a vast codebase. Before I bind any events or do anything I want to fetch all the currently bound events for that components.
Does jquery provide a way to fetch all the currently bound events for a component?
Any help is appreciated.
Cheers
...
Is there any good JQuery and PHP rating/voting tutorials that are out there that can't be found doing a simple google search?
Can you pleas list them if possible thanks.
...
I developed a little cross domains population script with query and php.
The population injects text and links but i really need some tip to implement seo on the populated div, the content dosen't change is only loaded just one time.
i'm reading a lot about it, this is a well-known limitation but....any advice?
...
I have this jquery script :
$.fn.myFoo = function(){
alert(this.selector)
alert($(this).selector);
}
then i call it like so.
$('#myID').myFoo();
I need but it returns empty: i need it to return "myID" i can't seem to find a way to do this can some one help please?
...
Hi there,
I'm building a web site and i want to paint/highlight the line that i m reading.
here is my code:
foreach (GridViewRow rw in gvHastalar.Rows)
{
rw.CssClass = "gvKontrolEdilenSatir";
}
Thanks in advance
...
Hi all,
I have an element in my page. I want to display that in thickbox.So I've
used TB_inline for it.Everything works fine in other browsers.Whan the link
is clicked the (video) loads into the thickbox. But in IE 8 When the same
link is clicked twice, for the first time the video loads, but the second
time the video does not load(an e...
Hi,
I'm initializing the dialog with position: [900, 58] and it looks good
until I resize the window. Upon window resize to reduce the viewport,
horizontal scroll is introduced since the dialog is still at position
[900, 58]. Can anyone please help provide a solution to make the
dialog reposition or initialize the dialog the right way?
...
Hi all...
I have a table with the following complex structure....
<table>
<tr> // 1st row
<td>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<table>
<thead>
...
Hi there,
Ive been writing a simple jquery function that turns a div with a list of images into a carousel. Here is the markup..
<div id="carousel">
<ul>
<li><img src="images/music1.jpg" /></li>
<li><img src="images/music2.jpg" /></li>
<li><img src="images/music3.jpg" /></li>
</ul>
</div>
and in my carousel.js file i hav...
Hi all,
I've recently come across CakePhp as an excellent framework and am currently porting over my site to cake. In terms of using JQuery, what is the currently recommended method for including the javascript / accessing the javascript files. Doing a little digging, some people have suggested a central place in app/config ... what...
I've managed to create multiple toggle instances on my page, however the toggle links themselves need to be unique, as at the moment toggling one link toggles all the rest.
Here is my code so far:
jQuery:
$(document).ready(function() {
$('.toggle').click(function() {
var id = $(this).attr('name');
$('#module' + id).slideToggl...
Hi there,
I am trying posting a data to a web service. And this service in a different project in same solution.
This project name is WebServices and web service's name is HastaTahlilUyariService.asmx.
My code is here:
$.ajax(
{
type: "POST",
url: "WebServices/HastaTahlilUyariSe...
Im using the bog standard form validation plugin. I have two radio buttons 'yes' 'no' and what im trying to do is set validation if a radio 'yes' is checked... Which works, but i need to then turn off validation if the 'no' radio is selected. Im trying the following...
<script type="text/javascript">
$(document).ready(function()
...
Hi folks,
I have two select inputs set to display:none. Based on change() in another element I use jQuery to show() or hide() them. All of my browser tests look great except for Chrome which dies with the "Something went wrong..." message. Here is my function
$(document).ready(function(){
$("#supplier_type").change(function ...
There's something like this http://docs.jquery.com/Plugins/Autocomplete/autocomplete, but it doesn't force the selection of an item. I need something like this but it has to force an item to be selected before you can "submit".
Any help?
...
Hi and thanks for reading,
I can access local contents loaded in an <iframe> with
$("#frame").contents().find('div').css(...)
When using a <object type="text/html"> instead (same local site), the contents function does not work.
Is there another way or did i miss something ?
Here follows the test code :
HTML :
<!DOCTYPE HTML PUB...
Hello,
I'm starting to learn JavaScript and jQuery. I managed to do some tweakings and stuff, everything's fine so far. But I was thinking if it is a best practice to mix multiple jQuery files and plugins. For example:
I have jQuery 1.3.2 min.js, jQuery easing 1.3.js, jQuery Cycle min.js and jQuery UI. Would it be recommended to put to...
I'm trying to write a reusable function to retrieve all data in a table that is passed to it and store it in an array.
I'm not sure how to pass the reference to the table.
I could do something like...
passTableRef($('#tableId th'),$('#tableId td'));
but I would like to pass just the table reference in case I would like to elaborate ...