I've been playing around with jqTouch to create a mobile version of my Rails app.
I use Devise for authentication, but it won't work with jqtouch.
It has something to do with jqtouch's "auto-ajax" functionality. I used a "rel=external" attribute on my sign in form to get it to do something at all (before it simply wouldn't do anythin...
I have wrapped a common ajax call into a function. It pings a script, returns JSON.
However for the life of me I can't seem to be able to have the JSON object be the return value of the function.
Must be something fairly simple I am missing, bu for the life of me can't work it out.
function queryCostCenter(user_id, currency_id, countr...
I was just wondering what the best online scripting language is to use for "simple" mathematical calculations, like solving for roots in 2nd 3rd or 4th degree polynomials.
For example, creating a little web "applet" like the one found here which inserts the values inputed into the text boxes and inputs them as variables into the "quadra...
I've been trying a few different ways to filter finding of specific nodes within my html.
Here is some example html:
<body>
<div ui:component="component1"></div>
<ul ui:component="component2"></ul>
<article ui:component="component3"></article>
</body>
I've successfully been able to match items by doing a simple filter:
/...
First of all, this problem only happens in Firefox.
Check this example page to understand the problem:
-removed-
Select any page besides home. The window will scroll to page. You can then scroll down using the mouse wheel. This works fine. BUT if you grab the scroll bar on the right with your mouse it will jump back to the "home page" ...
I am passing this function different field names on each call. I would like it to post the interpolated string value of the variable field as the name of the posted var. Eg one post might have
data: { 'shoppingCartContents' : cartrow, 'number' : number, 'foo' : value }
but every post just has
data: { 'shoppingCartContents' : cart...
I have a textbox with calendar button. Here my requirement is I need to clear the text box when user clicks Calendar Image control. Please provide JQuery for this.
Thanks in advance.
...
This isn't really a question, just something I struggled with on my own and thought others might appreciate a solution.
If you try to apply a border and rounded border radius to a div containing an image in FireFox, you get rounded div borders with a square image sticking out at the corners--rather unsightly.
Solution?
Apply a desire...
So I'm working on making a dynamic drop down select form and I need for each menu to propagate possible choices from a prebuilt chunk of html (located at, say, http://example.com/menu/choices) is there an easy way to use javascript to fetch the html of a remote page and then plug that in to the page? I know I can use .write() to insert t...
I'm sure it's stupidly easy, but how can I replace just the text within an html tag. For instance, from this:
<div style="display: block;">blah blah</div>
<a href="#" style="display: inline; ">(Old text)</a>
to this:
<div style="display: block;">blah blah</div>
<a href="#" style="display: inline; ">(New text)</a>
replace Old text =...
So, I see so many people wondering how to execute JS code returned via ajax. I wish I had that problem. My JS executes, but I don't want it too!
Using jQuery 1.4.2, I'm making a GET request:
$.ajax({
url:'/myurl/',
type:'GET',
success:function(response){
$('body').html(response);
}
});
The response looks something like:
...
I implemented draggable image using jQuery-ui Draggable and saved coordinates into database.
Now I am getting coordinates and images url in xml format.
I want to reset the image position. where it was saved.
============= Here is source code:=============
$.ajax({
type: "GET",
url: "devices.xml",
...
I'm wondering if it's possible to take all <a> tags inside a div and have them open in a new window which uses a subdomain. Here's what I'm working with:
<div id="workshops">
<a href="/_product_119808/Test_Workshop">Test Workshop</a>
</div>
I would like to have the Test Workshop link open up in a new window but also use a subdomain. S...
Hey Stack Overflow community!
Our Group is trying to create a slide-out option panel for products to be sold on our site.
For some reason, CSS is acting up on us and it's a pain to get our images to layer properly. In the past, z-index did the trick, but now we have to test random stylings and workarounds just to get remotely what we'r...
I'm not sure if this is possibly, I may end up having to change how I'm doing this.
I have an Android app that's mostly just a webview that displays the mobile version of a site, which is in .NET. The chat room uses jQuery and updates every 1.5 seconds using ajax. The box you type in though is part of the Android app though. When you...
Hi guys,
I'm having some problems with an ajax autocomplete field. I did the same thing before but never ran into problems as I never really had a slow internet connection.
I have an input box which acts as an auto-complete field. I binded a jQuery keyup() event to that field and I'm querying a php file with each keypress on that field...
Hello,
I am working on joomla. i use the json code i.e.
<script language="JavaScript1.2">
jQuery.noConflict();
jQuery(function() {
jQuery('.text_area').change(function() {
var traID = jQuery(this).val();
jQuery.getJSON('?option=com_propertyform&view=ajaxdata&format=raw', {
traid: ...
I have an asp DataList as follows.Here I am having a Checkbox and i need to input a number for the corresponding textbox,if I clicked the checkbox.How can I validate it. If I clicked a checkbox I must enter some value(int) to the textbox. Need to validate only for those clicked.Thanks in advance !
<asp:DataList ID="dlstEnergyItems"...
I have written the following code to place the image path into sql server 2005 but its not working is their any alternate way to place images into sql server from clientside application.
example.html
<form id="addresslistingform">
<fieldset id="fieldset1"><legend>Address for listing</legend>
Zipcode:<...
I am trying to populate a jqGrid with data from a web service. I have looked at the jqGrid code and documentation thoroughly. I need another set of eyes to look at the code below and tell me if I'm missing something.
As you'll see in the code, I have the grid set up to load when the page loads or during a refresh. After the grid load...