Build Code Snippet And A Remote Script That Draws A Review Badge On Site?
Mar 8, 2010
How to build the code snippet that a 3rd party would add to their website page and the corresponding remote script that draws a review badge on a site similar to how tripadvisor does it?
You can see an example here if you scroll down to the bottom: http://www.hotel-grandmajestic.cz/en/about-hotel
Here is the source from that webpage code...
View 9 Replies
ADVERTISEMENT
Apr 1, 2009
I'm in desperate need of some JS code that will rotate "two" snippets of javascript code 50/50. So basically every time someone visits my site i need it to load either snippet 1 or snippet 2. I tried doing this before with an array but the javascript caused the page to not load because i think both snippets of code where trying to be executed at the same time? Can anyone code me up something that will rotate two snippets of js code without having them both try to load at the same time on the browser.
View 18 Replies
View Related
Mar 7, 2011
I have been developing JavaScript for websites on and off for about a year now, and have recently been working on a website project with a couple friends (the url). The project is about done and I think I'm ready to start telling everyone about it, but I thought I'd have some coders with more experience go through my code and suggest improvements that can no doubt be made. I've tested with the Error Console and run it through JSLint, so there shouldn't be too many worries there. It uses jQuery with no extensions. The code is fairly small so it shouldn't be too much of a hassle, only a couple hundred lines, nonetheless I won't post such a conglomeration here unless it is explicitly requested.
View 3 Replies
View Related
Jun 2, 2009
I feel a bit guilty for posting this here as it may be considered as spam, so if you do think that please ignore/delete. For the last couple of days I've been working on a form validation plugin and I've taken a completely different approach (I think, that is) from what already exists. The result is a plugin with less than 300 lines of code that does absolutely no form validation at all. WTF you may very well ask, and I explain: the core of the plugin basically assigns/save 'rules' and callbacks on an object. One way to save/create a rule is when extending the plugin, i.e. adding validation rules, onerror/onsucces callbacks and the like. Another is
[Code]...
View 4 Replies
View Related
May 1, 2007
The boss wants to distribute a mini-site to partners but still maintain control of the site on our end. The initial thought was to just send them a Flash app but I'm not sure if that will be the most practical. Here's what I would like to be able to do. I don't know if it's even possible.
In this proof-of-concept model the mini site has three pages that all link to each other. Pages also include images and a form. The partner's site would have a bit a javascript on the page to set a unique ID parameter and then load our mini site.
I imagine this JS site importer would wind up spitting out a bunch of document.write() stuff to basically write our site into the page of the partner's site.
Am I even making sense?
The desired effect is to allow the partner's site to display our content within their shell. AND for us to be able to change the content at will. AND to be ble to shut off the partner's feed (via that unique ID parameter) if we need to.
I'm not asking for a complete pre-written solution (although it wouldn't be rejected!) Just for a shove in the right direction.
View 3 Replies
View Related
May 24, 2011
I am trying to read an XML file from a web source to display on my site. I can't get it to work ..GET seems to come up with an error - I tried crossDomain: true with no luck and have tried on a local and web server.
The code I am using is...
$(document).ready(function(){
$.ajax({
type: "POST",
url: "http://js.monster.com/query.ashx?cy=au&jcat=3975.11885&pp=20&tm=60d",
[Code]....
View 1 Replies
View Related
Jul 22, 2010
I am trying to build a site using html, css and javascript. problem is it works perfectly in IE but practically not at all in firefox. I have lots of mouseovers and tooltips, none of which will work. The only thing that seems to work is an onload random image generator. The html and css all return no errors using firefox's validation tool. I am completely new to javascript and have been trying to learn via building this site, so apologies if the code is really messy. Would be really grateful if anyone could help - I thought I was getting to grips with this when it all worked in IE, but am now feeling pretty stupid and think I must be missing something pretty fundamental. I've spent an age getting frustrated trying to resolve this.
[Code]...
View 14 Replies
View Related
Oct 19, 2009
I have discovered a XSS vuln in a website and I'd like to use this as a cookie grabber. If you can help, <removed>.
View 1 Replies
View Related
Mar 10, 2010
I am trying to build a site , classified adds.
And one of the features is selecting/making ads that you want to see in a separate page later on(something like a shopping cart) BUY way simpler
after a user search for something he gets a LIST of numbered ads(different ID for each) and a button SELECT/MARK this ad.
This select/mark button suppose to add the specific ad ID to a coockie and then when the user clicks "go to see my ads" its will pass ALL the ID numbers to aPHP page that will print what it should.
what I was trying to do is try to use a "shopping cart" script and just use the part that each product has a "add to cart" button and in the "my cart" page it will show the selected products, but as I have no clue about javascript in this way I was willing to pass the variables(ID numbers) with JS and $_GET them with PHP and from there I can continue
so what I need is : Asimple <form> that when u submit it , it sends a variable(ID) to a coockie and STAYS ON THE SAME PAGE then when you decide to see the selected list it will pass all the ID variables to the page with the link it self and I can GET it with PHP.
View 2 Replies
View Related
Mar 19, 2010
I want to display on the partener's website some informations contained on my serveur relative to him (i have multiple parteners) and i thought it would be great to display them like the facebook badge (it's the only example which comes to my mind)
The thing : i really don't know what to do / how to begin :
I cannot use jquery, because it would involve that the parteneer website has jQuery.
I have multiple possibilites on the source of the information :
I can cache a PHP file wich contains informations (but i have 25 parteners so it would be 25 files cached ? -> bad )
I've a XML file [url] but i don't know how to parse an xml file either :O to give you an example i just want to display on crystal-serv information contained between the <GSP> tag where nom = crystal-serv
View 2 Replies
View Related
Jul 29, 2005
I haven't been able to pinpoint why my Flickr badge (a javascript tool) causes my page to "flicker" when it's loaded (I've tested Opera and IE, as well - and neither of them have the same problem). It's definitely related to the way I've got my css and JavaScript set up on the page, but I can't pinpoint the problem. This is the second Flickr badge problem that I've run up against.
View 7 Replies
View Related
May 6, 2010
I'm creating a javascript class that draws triangles for a project I'm working on (none of the other vector solutions for triangles were satisfactory so I'm writing my own).
Anyway here is a small snippet of code:
Code:
The idea of the code is to create a small div in the middle of the triangle that a user can click on, pretty basic stuff.
Problem with highlighted code is, on their own they work, together they dont.
IE, if I only set the LEFT of the div, it moves across the screen to required position.
If I only set the TOP of the div, it moves down the screen to the required position.
But BOTH together (as above) just make the div dissapear somewhere. Weird.
View 10 Replies
View Related
May 4, 2009
I am new to javascript, I have one question, how can I use javascript to get the IP address of the remote user or remote web browser?
View 9 Replies
View Related
May 24, 2011
I am looking to build a slideshow (basic, with next/previous options, e.g jquery cycle) but I would like it to get the images from a specific folder. So, whenever I want the slideshow updated, I would simply drop the files in a folder and that would do it.
Would this require a php script? If yes, direct me to somewhere to find out more...Or if there are other ways.
View 4 Replies
View Related
May 6, 2011
I am currently using this code on a webpage that lists the site members.
function toggleMenu(objID) {
if (!document.getElementById) return;
var ob = document.getElementById(objID).style;
[code]....
View 3 Replies
View Related
Jul 23, 2005
I am building a stand alone html help system (.chm.) So the usual woes with
mailto are not going to be encountered. Likewise I am ensured all my
intended users have Outlook installed. With that said This is what I want
to do.
I have a simple html form with a an radio button option group, a listmenu, a
text box, and a text area. What I would like to do is have a user fill out
this form, and hit a button that sends the results via outlook. The TO, CC,
and subject fields will be hard coded. I want the option from the list menu
on line one, the radio button on line two, the text box on line three and
the multi-line text area starting on line 4.
I haqve searched the web, and groups all day to no avail. Everything I have
tried simply fails. I even tried breaking this down into a simple one text
box one button, with no good results via javascript. I can get it to work ok
without javscript, but instead of new lines they just overwrite each other.
View 3 Replies
View Related
Aug 16, 2011
I can't understand how to acccess a property in this snippet:
function FGGE()
{
this.totalExternals = 0;[code].....
View 6 Replies
View Related
Sep 4, 2008
Anybody know of any product review script, like amazon uses, that is javascript?
View 1 Replies
View Related
Mar 29, 2001
I am looking for a script that would enable users to rate and review products (ie rate it from 1-10 and leave comments about the product). The script must run on a NT server and be free. I know such a script must exist, but I have searched various script archives with no success. I have been considering hacking out my own using a flat file database, but I don't really have the time and don't want to re-invent the wheel.
View 1 Replies
View Related
May 14, 2010
What I am trying to do is add a list box to my site that when the user clicks on a certain item and presses submit the correct code gets sent to my cgi cart.
View 3 Replies
View Related
Oct 26, 2011
I actually got two questions.it's regarding the website URL...
1) I'm building up the content from the database using JSON. Currently for each entry I build up the HTML code via Jquery and append it to the div. Is this the best way to do this or can this be done better/more efficient?
2) in the generated content I have a link that triggers the 'show/hide' function of a div below (URL...). Currently it doesn't work within the generated content. At the moment when clicking the link, it should create and alert, but even that isn't working. Is it possible to have a JQuery trigger within JQuery generate content?
View 1 Replies
View Related
Jan 8, 2010
I'm looking for 5-radio button replacement. The user should be able to slide a slider between values from 0 to a 100. Text will appear under it that will say "I strongly agree" "I agree somewhat" "I am indifferent" "I disagree" "I strongly disagree" depending on the values of the slider (they should change in real-time). Unfortunately I do not have the skill to make one, especially one that has a good browser-compatibility. Does anyone know any good snippets? I'll keep searching on google and post back if I find one.
View 14 Replies
View Related
Jul 23, 2009
here is a piece of AJAX that i have used in my JS file. It's working fine with IE but somehow the page does not load in Firefox.
[Code]...
View 2 Replies
View Related
Jun 10, 2010
I have a snippet of code that is brought into the DOM via a .load() call
--- snippet ---
<script type="text/javascript">
function foo()
{
[Code].....
PS> The actual implementation is more complicated. This is the boiled down version of the problem.
View 8 Replies
View Related
May 6, 2011
I'm using .load to load a snippet of code into a div on a page. This works fine, but IE won't show the div if there is any JQuery, or indeed and sign of <script></script> tags. The snippet I'm loading contains a form with a from/to date and needs some form validation, all of which I wish to use JQuery for, for instance:
[Code]...
Putting this script anywhere in the main body of my html page means that JQuery can't see the fields which eventually get loaded into the waiting div on the same page (even when using $(document).ready ). The field seems to be too deep in the DOM and loading too late for JQuery to see it. Anyway, this is why I want to include it at the top of the loaded html snippet. Is IE known to have a problem with scripts in .load-ed snippets? p.s.The reaction of IE is just to show a blank div.
View 1 Replies
View Related
Feb 19, 2011
In the below script syntax, a simple table converts Celsius degrees into Fahrenheit, using the For loop and integrating it into a table.
<html>
<head>
<title>Celsius-Fahrenheit Converter</title>
[code]....
View 2 Replies
View Related