Welcome To Snipplr
Everyone's Recent Snippets Tagged url
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.
1
918
posted 16 years ago by 1man
ej:
echo keepqsSinParametro('hola','hola=mundo&mundo=lindo&hola=chau'); #out = mundo=lindo
0
794
posted 16 years ago by nicolaspar
to call this function you would use "asfunction:myFunction,argument1,argument2,argument3" as the href in the tag in an HTML text box.
0
1108
posted 17 years ago by Bonky
This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.
2
931
posted 17 years ago by 1man
Works in IE.
FF 1.5 hides URL, but does not show displayed url.
3
774
posted 17 years ago by tohagan
Dots match any charecter, this matches any 7 chars. You need to change that bit to match a different pattern.
1
974
posted 18 years ago by rengber
Read a page's GET URL variables and return them as an associative array.
----
Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir
var hash = getUrlVars();
alert(hash['hello']); // prints 'bonjour'
alert(hash...
35
7926
posted 18 years ago by Roshambo