hi folks,
here in index.tpl
here in javas.js
var currentTS = "{literal}{$userid}{/literal}";
alert(currentTS);
but there will be alert {literal}{$userid}{/literal} not the $userid.
any idea?
Hi,
I have saw some time ago library where you can import your 3d objects and it will draw those out. You could also animate the objects.
The webpage itself was back and there were rotating gear at the corner...
Can anyone recall the name of the library?
Also you can mention if you know some other neat js libraries.
Thanks!
After calling encodeURIComponent in JS and piecing things together, I have an URL like this:
http://www.foo.com/%E5%9C%B0%E9%9C%87
(i.e utf-8 encoding)
This gets received in my python server side. How can I decode that to a unicode string of
http://www.foo.com/??
?
Hi out there,
i'm trying to get the latest podcast informations out of "itunes store" to work with this data in several applications (iphone app and web app).
Is there a way to get this informations? RSS, JSON or something?
i want to work with this informations in objective-c and on a website with php or js.
Is my question clear? :(
I am using Lightbox 2 and I have followed the short tutorial on how to insert it in a webpage and it works perfectly but the close and refresh images don't show. They are replaced with the classic Mac OS X '?' box. I have checked the paths of these images in the lightbox.js file and they are correct.
Thanks in advance!
I'm frequently adding a lot of content files (mostly images and js) to my ASP.NET project. I'm using VS publish system, and on publish, new files are not published until I include them in the project. I would like to auto include all files in specified directory. Is there a way to specify wich directories should be auto-included in csproj file or anywhere else?
I'm new to sencha-touch. I was wondering how to properly use the file structure in sencha-touch. For example, under the app folder there's your controller, model, profile, store, view folders. If I define a store, for example under the the store folder I create a file named search.js
Ext.define('Volunteer.store.search'{
extend: 'Ext.data.Store',
requires: ['Volunteer.model.person'],
config:{
model: 'Volunteer.model.person'
}
});
How do I use this store in a different file?
I guess these are all questions that everyone must just know, because I'm not seeing this in the documentation :-D
I understand that the public folder is the folder that the world has access to.
I know it is the case with the css folder, but in migrating a traditional php website over, will my /images folder, /js folder /mp3s, etc Will those all just also be public folders that will be accessed via the layout or view.phtml pages?
Thanks!
Part of the problem here is that i'm not sure what the best language to use in order to find the solution. I search and searched so please forgive if this is already a thread somewhere.
I'm using the roundabout plugin to cycle through 3 divs. Each div is 794px wide, which makes the roundabout-in-focus element 794 and the two not in focus 315.218px wide, positioned so half of each is hidden by the in-focus div. This is all well and good, however the total width of the display needs to stay within 1000px (ideally 980px, but i can fudge if need be.)
Basically I want to make the non-focused divs be 3/4 hidden by the in-focus div but for the life of me can't figure out what variables i need to edit in order to do it. Unfortunately it's not one of the many easily-changed options like z-index and minScale. i tried minScale but it's clear this isn't going to work.
the plugin outputs this code:
<li class="roundabout-moveable-item" style="position: absolute; left: -57px; top: 205px; width: 319.982px; height: 149.513px; opacity: 0.7; z-index: 146; font-size: 5.6px;">
i need to find out what changes the left positioning so it's shifted closer to the center of the stage, like this:
<li class="roundabout-moveable-item" style="position: absolute; left: 5px; top: 205px; width: 319.982px; height: 149.513px; opacity: 0.7; z-index: 146; font-size: 5.6px;">
i tried playing with the positioning functions of the plugin but all that did was shift everything in tandem left or right.
any help is greatly appreciated. this site is going to be awesome once i figure out all this jquery stuff!
here is a link to my .js file: http://avalon.eaw.com/scripts/jquery.roundabout2.js i've got an overflow:hidden on the to help guide the positioning of those no-focused items.
How do I go about getting the isapi_rewrite working on IIS 6.0?
My shared hosting account supports ISAPI_Rewrite - I've run the provided tests to confirm.
I'm only able to access the index page of my Zend PHP project, but get the 404 error for other actions in my index controller class definition.
I've basically placed the code:
[ISAPI_Rewrite]
RepeatLimit 20
RewriteRule (?!\.(js|ico|gif|jpg|png|css|swf))$ index.php
in an httpd.ini access file in my wwwroot directory. Is there anything I'm missing?
I just installed Google's Page Speed plugin to Firebug, and everything looks good except for caching. I have set headers to cache my JS and CSS files, but it says the images aren't being cached. How can I make sure the images get cached for 30 days? These are static images, so I can't just add the headers with PHP like I did with the other files.
How do you add an Expires or a Cache-Control Header in JSP. I want to add a far-future expiration date in an include page for my static components such as images, css and .js files.
Any help is appreciated.
Hi,
I am using the below js code in order to change the class when a link is clicked.
document.getElementById("gifts").setAttribute("class", "gkvSprite selected");
This is not working in IE but it does in FF and Chrome
Then I changed the code to :
document.getElementById("gifts").setAttribute("className", "gkvSprite selected");
Then it worked in IE stopped working in FF and Chrome.
Could someone please help me out here?
Thanks in Advance
Alloi
Hi,
I want to know if there is any existing implementation of 'endless scroll' in Flex ? I searched online but I could only find implementation in Javascript.
What could be the pros/cons of having an 'endless scroll' component in Flex, which would be more efficient JS or Flex.
Thanks
Hi,
I need to validate a date in a web forms application. For this I use a CompareValidator with
Operator="DataTypeCheck" Type="Date"
The problem is that this Validator doesn't work properly on Firefox with 2 digit years. ( javascript error: m[2] is undefined)
With a 4 digits year it's working properly.
This problem is described also here:
https://connect.microsoft.com/VisualStudio/feedback/details/355573/comparevalidator-client-side-bug-two-digit-year-in-mozilla-based-browsers-throws-js-exception
Does anyone know a nice workaround for this?
Thanks
I'm loading jQuery from google on my site (http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js) which is minned and gzip'd. In firefox, the jquery file shows as a 19k request, but Safari shows it as a 56k request. I'm assuming then that Safari is not accepting it as a gzip'd file. What's the deal? It's coming from google and I'm pretty sure it's supposed to be gzip'd
I'm working on an application that relies on data that the browser sends within the HTTP headers (and there's no way around this). This also happens to be my first time working with something node.js based, so it's very likely I'm completely missing something simple!
Basically what I want to be able to do is call a method on the server from the client, and in that method read the HTTP headers that the client sent.
I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map?
Thanks!
Is there any way to cleanup JavaScript code?
I want to enable users to post arbitrary JS but i want to filter some of it out, like eval and document.write. Do you know of any tool that can do this?
how to remove index.php from my url in codeigniter . i remove index.php from my config file and i have run my rewrite_module in apache(2.2.11) and my .htaccess file is
RewriteEngine on
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
now whenever i click any link it show that request url don't found . so please tell me what is the problem ?
jquery-1.4.2.min.js is 71.8KB
Same file compressed through this tool, with gzip enabled, becomes 32.9 KB
Which is better? If latter, why doesn't jQuery provide a packed file too instead of just uncompressed and min versions?
Thanks
I am using snow leopard and this is what I get in my terminal. By default I am using bash.
> ls c*
clock:
PSD demo.html jquery.tzineClock script.js styles.css
clock2:
clojure-presentations:
Clojure-1up.pdf ClojureInTheField-1up.pdf license.html
Clojure-4up.pdf README
ClojureForRubyists-1up.pdf keynote
coffee-script:
Cakefile README bin examples index.html package.json test
LICENSE Rakefile documentation extras lib src vendor
I guess these are all questions that everyone must just know, because I'm not seeing this in the documentation :-D
I understand that the public folder is the folder that the world has access to.
I know it is the case with the css folder, but in migrating a traditional php website over, will my /images folder, /js folder /mp3s, etc Will those all just also be public folders that will be accessed via the layout or view.phtml pages?
Thanks!
i cant for the life of me figure out how to change the date from default mm/dd/yyyy to the european dd/mm/yyyy
the manual states to use:
$.datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));
so far i have:
$('#next_date').datepicker();
which shows the calendar fine but im not sure where the first line of code goes. this for example disables the calendar, nothing shows up, no js errors reported
$('#next_date').datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));
I am trying to do the following in JavaScript:
var gete = document.getElementById;
But I am getting the following error (From FireBug's Console):
uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://localhost:8080/im_ass1/ :: anonymous :: line 15" data: no]
Now obviously I can wrap the function as follows:
var gete = function (id) {
return document.getElementById(id);
};
But what is the reason I'm getting the above exception when assigning the function to another name?