Hi all,
Just getting some css together for a mobile web app (using the xhtml-basic/xhtml-basic11 dtd) and was trying to think of a reliable way to filter for mobile browsers. I've taken a look at http://detectmobilebrowser.com but that appears to filter on the basis of a list of string matches.
Here's what I'd like to do:
1 - In the ...
http://stackoverflow.com/questions/1841112/online-image-editor-ajax-or-flex-flash
The above wasn't really the answer
that I was looking for.
I'm looking for an online image editor which I can embed into my pages, so users can edit images and submit them.
I'm fine with it being Flash or Canvas/JS, no Silverlight or Java pleas...
Guys,
I'm trying to create a flyout menu that has scrolling build in if its larger than the screen. I can't seem to figure out how to do this with the native overflow-y scrolling properties. Everytime I seem to set that overflow-y:auto then the the menu that flys out is nested within the parent div with a scroll bar.
Anyone has any i...
I am trying to understand how to use jQuery when it is loaded using Google CDN's google.load method.
Putting the init code in the setOnLoadCallback function works great but defining functions for event handlers in the markup doesn't seem to work. In the example below, the P button works as expected but the Div button does nothing.
Yes,...
I control an iframe being rendered on another domain. Is there a clear way of telling whether this iframe is being rendered above or below the fold on the parent page? Obviously, I can't access the parent DOM because of the same origin policy restriction.
For example, I tried measuring the speed of rendering on a canvas or VML tag, hopi...
Hello, I'd like to take the selected text on screen (text highlighted with the mouse) and when a button is pushed wrap that text in a tag. I'd like to use jquery but if it can be done in another framework that would be fine too.
I haven't been able to figure out how to do this yet, so any thoughts are appreciated. Also I know you can r...
Take a look at the following code:
Number.prototype.isIn = function () {
for (var i = 0, j = arguments.length; i < j; ++i) {
if (parseInt(this, 10) === arguments[i]) {
return true;
}
}
return false;
};
var x = 2;
console.log(x.isIn(1,2,3,4,5)); // <= 'true'
console.log(2.isIn(1,2,3,4,5)); // <= Error: 'missing ) afte...
Hello,
I am using ASP .Net 3.5 and trying to invoke a WebService using javascript and Sys.Net.WebRequest.
The service gets invoked for the first time and everything is fine until I try to refresh.
on a refresh th WebRequest object invoke method is called but instead of invoking the service is jumps right to the callback function, as i...
When i use this "#<%= txtNumberOfDrugsInKit.ClientID %>", i can access the server control from my JQuery script; but when i put this in an external script file, it does not work.
How can i access an asp textbox from my external JavaScript file? I cant believe this is not working.
...
Hi all, I have problems with my layout, when I resize window manually and restore it to normal everything is in the perfect place.
My question is following, is it possible to trick browser and do something with javascript that would actually make browser thing that page has been resized so that my layout looks as it should? some kind o...
I have a popup that gets fired when I hover over a link in an iframe embedded inside the main page.
Currently that popup is rendering on the iframe and gets clipped. I want the popup to display on the top and not in the frame.
...
I need an exponential equation with the following parameters:
When x = 0, y = 153.
When x = 500, y = 53.
Y should increase exponentially as X approaches 0 and should decrease exponentially when X approaches 500.
For some reason I can't remember how to do this.
I'm sure once I see the equation (or one similar) I can figure out the rest....
I'm trying to validate a generic contact form that's provided by my CRM unfortunately they control the server side script that puts the information into the CRM.
The name of some of the form fields have spaces in them. How can I accommodate for that?
if ( document.contact_form.First Name.value == "" )
{
alert ( "Pl...
What is the right jQuery selector to use for all fieldset elements which have only checkboxes in them? I tried $("fieldset:has(input:checkbox") but that didn't work.
Help? Thanks
...
I have product website. On one page I show thumbnails and a brief description of all the products. When you click on the photos, you get to a detailed product page.
Is there a way to get the browser to start loading and caching the javascript and CSS for the "detailed product" page while the user is just looking at the "all the products...
I'm trying to update a Javascript variable that controls a scrolling script based upon some Ajax code. The Ajax code is supposed to add to the JS Var when conditions are true in the Ajax script. Is there any way to trigger this?
Thanks!
edit: I'm not sure how to change the value of the variable. I've tried changing it via the Ajax but ...
CSS code:
p.myparagraph {
color: yellow;
}
Assume that I've turned the color of <p> elements that use the myparagraph class to red. Is there a way to reset all style properties of paragraphs using this class (not limited to color) to their CSS-defined defaults?
...
Here is the javascript:
function checkusername()
{
var username = $("#username").val();
$.post("usernamecheck.php", {'username':username},
function (data){
if(data == 'taken'){
...
hi,
i am interested in the E4 eclipse project or eclipse 3.6 this platform offers few thinks that i really find interesting, like debugging javaScript with rhino.
unfortunately (but expected) i could not find any material about this platform (in case i succeed i would love to share the knowledge)
does anybody knows if the they have ...
I'm using the latest version of the Google Maps API.
What I'd like to do is automatically minimize the small overview map located on the bottom right of an embedded Google Map. Or in the worst case, not displaying it at all.
I didn't manage to find any documentation about this.
Any help would be much appreciated.
...