First, I created a xcode project and copied and pasted the CSS and javascript files into project folder.
Second, I loaded a local .html file to UIWebView.But the css files and javascript files don't fire.
<html>
<head>
<meta charset="UTF-8" />
<title>test</title>
<link rel="stylesheet" type="text/css" href="css/mycss.css" ></lin...
I just started a project using the Canvas. But one of the things I need is to keep track of movable, clickable boxes as in this example : http://raphaeljs.com/graffle.html so I'm wondering if Raphael-js + SVG would be better.
Which would you use? And why?
...
i would like to make a modal-confirm that acts like an confirm() but looks nicer :)
im using Facebox for other things right now and would like my confirms to have the same design
http://defunkt.github.com/facebox/
Is it possible to do this in some way?
...
What is a good constellation of tools for developing Java and Javascript web-applications?
Editing the code: syntax highlight, code completition, outline. (Java, JavaScript files at one IDE.)
JavaScript Debugging.
Build process: compiling java classes, compressing JavaScript files, assembling WAR, etc. (Ant tasks, Maven plugins for Jav...
I have created a mobile version of a my website which is a one-page webapp.
I'm working with php server side and js+jquery on the front end.
how can i auto-redirect mobile browsers to the mobile web-app in a
way that's transparent to search
engines?
should i allow only mobile bots on the mobile site? (with robots.txt)
do i need to f...
Hi,
this is my code snippet, where the program doesn't enter the foreach loop:
var ct = new Array();
ct["me"]= {"name" : "Jakub"};
ct["you"]= {"name" : "stack"};
ct.forEach(function (c){
document.getElementById("tmp").appendChild(document.createTextNode(c));
});
When I change the array indices from strings ("me", "you") to integer...
The old JS SDK had a function called FB.ensureInit. The new SDK does not seem to have such function... how can I ensure that I do not make api calls until it is fully initiated?
I include this in the top of every page:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '<?php echo $conf['...
I'm trying to split a string into an array of words, however I want to keep the spaces after each word. Here's what I'm trying:
var re = /[a-z]+[$\s+]/gi;
var test = "test one two three four ";
var results = test.match(re);
The results I expect are:
[0]: "test "
[1]: "one "
[2]: "two "
[3]: "three "
[4]: "four "
Ho...
Let's start with a bit of context. What do I have in my hands?
Multiple web applications (All .NET: WebForms and MVC)
Common UI template
Each application has also it's own UI elements.
Multiple files for css/javascript. Some common to all applications, some specific to the application.
Tenths of files per page = multiple requests per p...
function Subscribe() {
if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}
if (Page_IsValid) {
// do something
CheckUser();
}
}
The script is tied to an asp.net button with regular expression validators. I have another form on my page with a different validati...
Hi everybody,
I am not so good with javascript and I do hope you're tougher than me. Here is my problem: I use MicrosoftAjax.cs framework and I use classes like this one :
MyClass =
{
teststring:null,
$constructor: function(test){
teststring = "test";
},
GetInformationFromName : function(inputname, BeginningSeparator, EndSeparator) {
...
I would like to set manually each items when I create them. I'm a newbie in Js but I search for a long time and no find the answer :
I need some help please.
When I make a new annonce, how reach each field ?
function annonce() { return {
// scroll: 'vertical',
items: [{
xtype: 'fieldset',
title: 'Annonce',
...
Hi
I am creating a Adobe Air application with jQuery support. However, the recursive function that I have closes the tag first and writes the data afterwards.
My code is,
function displayTodoItems(id)
{
id = parseInt(id)
if(!id)
$("#todoLists").empty();
var list = fetchTodoItems(id);
if(list.data == null)
return;
var numRec...
I'm creating a JavaScript-driven timetable overview screen. It shows times of day as rows doing down the left, and has the days as columns going across the top.
There's an example here: http://www.cap2.co.uk/dev/timetable.htm
Essentially, I'd like to put the days across the top of the timetable div, and have them fixed there as the ele...
How can a javascript file know where it is located? For example:
<script type="text/javascript" src="http://mysite.com/scripts/howdy.js"></script>
How can the code in howdy.js know about http://mysite.com/scripts/howdy.js?
Edit: Clarification. I cannot rely on searching the DOM for my script tag because I need to know about ...
Hi,
Bit stuck on this one. I am retrieving a list of geo coords via JSON and popping them onto a google map. All is working well except in the instance when I have two or more markers on the exact same spot. The API only displays 1 marker - the top one. This is fair enough I suppose but would like to find a way to display them all s...
Why this small piece of jQuery code is not working on Internet Explorer? IT works fine in all the Webkit browsers.
$('#logo').toggle(function() {
$('#about').animate({'top': '-400px'},'slow');
}, function() {
$('#about').animate({'top': '0px'},'slow');
});
CSS:
#logo {
margin:-55px auto 0 auto;
cursor:pointer;
}
#abo...
I have a flash object in my page that i want to make as large as possible. The page is pretty much bare, except for one thing: a bar at the top.
Html:
<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
// setting flashvars, params, attributes
//...
// adding swf
swfobject.embedSWF("myfla...
Hello,
I have been struggling with a problem that kept me busy for a few days now. I am programming c# .net web applications for an IE only environment and my current project contains a modal window. I hope you guys can help me out here!
I have a couple of response.redirects in my modal page that work fine, with the addition of in the...
I am implementing an HTML form. For one of the fields (weather) the user must choose one of a set of options (sunny, cloudy, rainy, etc.)
So basically I'm looking for a nice replacement for <select> or <radio> that provides a series of images (that I will provide) for the user to select from. I'll create dulled/greyed versions of each...