I want to create an online web page editor using jquery.
How complicated is this type of feature? (yes I know its hard to answer this)
From what I can tell, you are simply referencing the various elements on the page and when a user selects a color in a colormap, you simply then cycle through the elements on the page that match a parti...
Hi guys
I made the front end (xhtml, css and jquery) of this website, you can see it live here: http://news.lifecooler.com/lifecoolernews/jquery/index.html
The guys who develop the databases integration and all the dev work made this:
http://www.lifecooler.com/edicoes/lifecooler/index.asp
If you see in the html version the tabs load q...
So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy.
$(document).ready(function(){
$("#business-locate, #people-locate").click(function() {
navigator.geolocation.getCurrentPosition(foundLocation, noLocation);
});
navigator.geolocation.getCurrentPosition(foundLocation, noLocation);
f...
Hi, I have the following function in a .js file in index.html
function getValues(){
$.ajax({
type: 'POST',
url: "http://localhost/getData/getdata.php",
success: function(data){
var dataValues;
var apnd;
dataValues = String(data.NSE);
apnd = "a";
updateValues(dataValues, apnd);
dataValues = Stri...
Hi,
I have a form in the middle of a table. I would like this form to always be in the center of the window vertical and horizontally, even when the window size is smaller than the table.
I am thinking on using the scrollTo function of jQuery and call it onLoad and onResize,
http://demos.flesler.com/jquery/scrollTo/
but I am a begginer a...
Hello guys
I have created a jQuery script to drag elements over the document. I done the script and is working perfectly. but when I add an image the script fails. Why I cant drag an image over my document, I can drag other elements such as div, span etc . I am not interested to use jQuery UI for this purpose
my code follows
<script l...
Hello all,
In my web application, I was dynamically adding/deleting rows from my HTML table using jQuery.
I had a requirement that I needed to delete individual td elements(and not entire row).
My jQuery code is as follows:
$(function () {
/* adding new row to existing table */
// HTML template of a row
$("#contactInfo")...
Hi all
I have a jQuery function that performs slideDown anitmation on a certain element when clicked like this
$('.Minimize').click(function() {
$('.ContentTD').slideUp('slow', function() {
//animation complete
});
});
the above script is written inside a web user control.
the problem ...
Hey all,
I'm fairly new to jQuery still and am trying to pick up ways to help optimize my code. I'm currently working on an application in which I'm calling some calculation methods everytime someone leaves a field (.blur). I only want to call these methods when certain criteria are met (such as value != 0). I have 9 fields where I'm c...
Hello,
I have what seems to be a simple issue. I have a jquery function that's running on page load, despite the fact that I specifically set it to run after the 'click' event on a specific element.
This is the function:
$('#boxShow').click(function() {
$('#colorBox').animate({
height: 'toggle'
}, 400, functio...
I built a player using cycle that cycles through various promos but I want to define the specific descriptive pager links for each page (other than 1,2,3, etc.) I know this should be possible but cannot figure out how... Even when I have added elements in the pager div they show up but the numbers that are auto generated are what control...
im trying to read the contents of myDiv which resides in a separate html file and do some appending in the current page,is this possible? i know there is load(), but it displays the whole html as it is.
$( ".myDiv" ).each(function(){
//do stuff
});
i have tried $('#result').load('ajax/test.html #container') route, but it loads the c...
I can use jQuery to change the value of a CascadingDropDown, but the event that fires which causes the target control's child dropdown to populate with data never happens:
$("#<%= ddlFromCompetition.ClientID %>").change(function() {
var fromValue = $("#<%= ddlFromCompetition.ClientID %>").val();
$("#<%= ddlToCompetition.ClientID %>"...
Hi all,
i had the following question.
i want to update my subcategory select list when the user select a specific leadcategory and show in other select list the subcategories.
The problem is that i can't figure out when i'm selecting a another leadcategory my previous subcategory has to remove and fill with the new data depending wi...
I have a page setup like so:
<ajax:UpdatePanel id="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox id="TextBox1" runat="server" AutoPostBack="true"/>
<asp:TextBox id="TextBox2" runat="server" AutoPostBack="true"/>
</ContentTemplate>
</ajax:UpdatePanel>
<asp:TextBox id="TextBox3" runat="s...
My background is in C and I've picked up PHP, mySQL, HTML, CSS without too much issue.
But I'm finding Javascript/jQuery surprisingly difficult to get right.
Very frustrating.
Why?
It seems to violate a number of traditional programming principles (e.g. variable scope)
Undefined variables seem to appear out of nowhere and already hav...
Is there an easy way to do the equivalent in jquery or jscript for that matter.
NewString = Regex.Replace(SOMESTRING, "[^a-z0-9A-Z -]")
...
I can't get jQuery working at all with IE7. I'm using the jQuery Cycle plugin, but I believe this problem is with jQuery (and the fact that I'm am a newbie). I'm trying to use an banner rotator, which works on Firefox, Safari and IE8. On IE7, it is not even activating... it just shows each div one after another.
Thank you in advance!
E...
Hi,
I have a form broken into 5 steps. Currently if you refresh/exit/close etc on steps 2-4 it returns a message via window.onbeforeunload no issues there.
window.onbeforeunload = function () {
if ( $("#step1").is(":visible") || $("#step2").is(":visible") || $("#step3").is(":visible") ) {
return 'Using the br...
Hi,
I need to know if it's possible to create a hook on the "Insert image" button to open a custom window (a personal media manager). If it's, how to return a value (image link...) to the wysiwyg ?
Maybe there is a documentation but I didn't find it.
Thanks!
Cyril
...