Codes Stopping Browser From Showing The Site Correctly?
Feb 22, 2011The Javascript that I have included in my php created site is
<script type="text/javascript">
$(window).load(function(){
setHeight();
[code].....
The Javascript that I have included in my php created site is
<script type="text/javascript">
$(window).load(function(){
setHeight();
[code].....
I am using the "jQuery UI Multiselect" from [URL] I need to have it inside a <div> set with "display: none;" from the start. The user then clicks a link and the <div> tag opens op.
The problem is that whenever I open the box the Multiselect does not show up correctly, it shows up as a 3pixel wide stick. You can see an example at: [URL]
here is the eax.html code:
<link rel="stylesheet" href="css/common.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/ui.all.css" />
[Code]....
i'm doing the following on a select box to load the next select box (in a td with the id)
if I look at the html returned by the ajax call I get
<select name=optionvalue /><option value='test 1'>test 1</option><option value='test 2'>test 2</option><option value='test 3'>test 3</option></select>
but it's showing as
the select box and then
test 1test 2test 3
my javascript code is
function Loadoptionvalueselect() {
//alert("here");
urltoajax = "getoptionsvaluesselect.asp?1=1"
strarea = document.getElementById('optionid').value;
[Code]....
I'm using a fork of osC for an ecommerce system. It has an integrated smarty template. In the admin section, when adding products there's a section with three tabs: Main Image, Extra Images, and Media
This section acts like AJAX, but I'm not sure if it is. The media pulls actions from two .js files: prototype.js and media.js So, I'm guessing it's Prototype? The problem is adding media works fine in firefox, but only shows a "Please Wait..." when used in IE, Google Chrome, and Safari The odd thing is when it's loading in Firefox, it says "Initializing.." (Instead of Please Wait..) then loads the media functions allowing me to add sound to my products. If it's php I can do fine, but I don't know much about JS.
The reason that it works well in firefox, makes me suspect the code is right, but missing something.
[Code]...
I've built a tool where users can search for something & the results show up in a select list as selectable options..... sometimes the results can take a few seconds to load depending on how many results there are... so I was attempting to show some "Results are loading" text when they search, & then hide it when they are displayed.
However for some reason it's not working correctly.. both commands don't appear to work until the select list options have loaded & hence rendering them redundant.... I have tried putting them inside separate functions but no change in the behavior.
What basically happens is I press the button to search & it searches & once the results show up so does the loading text.... however if I include the hide text command then the text doesn't show at all as it's hidden as soon as it's shown.
Here is the code I am using..
function searchCats(text) {
// Set URL for ajax request
var url = 'search_cats.php?search_text='+text;
// Set up element we're modifying
[Code]....
I had posted this issue previously regarding my Ajax site navigation module not loading correctly. It would load on certain parts of the site and not others. After some research I have discovered that I need to redirect from "www.mydomain.com" and make a call to "mydomain.com" instead. I thought a 301 .htaccess redirect would work but according to the site that sold me the template the script in my configure.php file must be changed. This is what configure.php looks like now.
<?php
define('HTTP_SERVER', '[URL]');
define('HTTPS_SERVER', '[URL]');
define('ENABLE_SSL', 'TRUE');
define('HTTP_COOKIE_DOMAIN', 'mydomain.com')
define('HTTPS_COOKIE_DOMAIN', 'mydomain.sslpowered.com/mydomain.com/');
define('HTTP_COOKIE_PATH', '/mydomain.com/mysite/catalog/'); .....
I am wondering what has to be changed in the script so it will make the call the the correct domain so the ajax script will load on all parts of the site.
In my quest towards becoming a guru in Web Development led me to start learning Scripting few weeks ago and i started with Javascript there is this video tutorial that i have on my drive which was putting me through, the going was good but i got stuck when some of the examples demonstrated in there did not perform the way it was performing on the Instructor's system, yeah he said it in the tutorials that some of the Jscript codes may not function well in some browsers especially the older browser,he uses Firefox and Internet Explorer on his system while i use IE and Google Chrome on mine.
Well the Tutorial is actually old(i think it's 2006), but cos i use IE9 and 5.0Chrome browsers which i believe are newer i expect the codes to run on them. There are some of his examples that did not work on Firefox browser but at least they work on the 4.5IE he was using but to my surprise, despite the 100per cent copy and paste that i was doing for some of his example few of them did not still work properly on my own IE browser;codes like that one that aids text scrolling, onunload method and other few ones.So "Web whizes" help me out on what i need to do to give my scripting experience a jolly ride into becoming a wizard in my Web Development.
I have an html form where IE and Firefox work very differently. So, it'd be useful to know what browser is in use. I found this script and put it in my html code...
In the php I do a echo code... but it's always empty... I figure I've got something obvious goofed up, but what?
ALSO, when I run it in IE 8.0, on screen it says "Microsoft Internet Explorer", but it SAYS Browser version: 4 - But I'm using version 8.
AND, when I run it in Firefox version 3.5.5 it SAYS "Netscape" and Browser Version: 5.
I need help badly on the div tags. I dont have much knowledge on div tags.I have a div tag in my code and it should be show when there is an inactivity. Its working fine, until today I found a bug.When I scroll my browser to the end, the div is still shown at the upper part of the browser. Unless i scroll up (as a programmer, I know that div will be showing up but ofcourse user will not know) I dont know whether the div is shown.Whether the user scrolls up or down, he should be viewing the alert which I show him.
View 3 Replies View RelatedI have taken over a previously designed site. I need to show the actual page url in the browser's address box. For purposes of being able to create links (in emails, etc.) which point the customer directly to the product on the site. As of now, you can only go directly to the home page.
The site is: [URL]
I made this webpage. It runs with a simple javascript function that changes the content in the window when you click on the menu buttons. the only problem is there are no vertical scroll bars when viewed in any browser. There seems to be a place for them but no actual scroll bar. I tried modifying the color and such with cs but it didn't change anything.
The site: [url]
Here is all the code starting with the html, then the css, and the two javascript pages
[code]
I want to open a simple powerpoint sheet in the browser window. What is the best way to do that?
I have searched in this group and saw different people telling that thepluginn for powerpoint must be placed on the page as well. Can someone help me out?
I won't lie to you. I'm trying to get data from html source from a 3rd
party website. I'm NOT interested in stealing code,hacking,sending
spam or anything sinister like that. I just want the content that is
displayed but I need to get it automatically via VB. It's only
publicly available price information but I don't think the website
wants everyone to be scraping their info into a database.
Apart from the base URL, the site concerned navigates solely through
javascript functions and session variables. I suppose what I'm asking
is, is there anything out there that tells me (the syntax) of what my
browser is actually sending to a website when I click a javascript
toolbar/button/dropdown within IE.
Is there any way that an Apache server can recognise that a users browser has changed from your web site to another site. ie. is there a way of executing a CGI based on when the address bar no longer has your FDQN.
Would this be via Javascript [if possible?] or ???
I'm not much of a javascript developer. This is my second project using collapsing/expanding content.
Code has been simplified for display here.
The code below works, but any time someone clicks the [-] or [+] to expand or collapse rows of the table, the browser flips the user back to the top of the page. This happens in FF and IE.
Code:
<table>
<thead>
<tr>
<td>Column 1</td>
[Code]....
I am trying to find the simplest, most cross-browser friendly dynamic navigation for my site. I tried to use a CSS version (Suckerfish) and it worked ok but it destroyed the formatting I had. I would really like to implement this kind of dropdown on my main navigation so users don't have to click and wait for a page to load. If possible, I'd like very few lines of code. That's why the CSS option was good... there was very little javascript.
View 7 Replies View RelatedI'm using a javascript to center my absolutely-positioned left-aligned site. However, it's not perfectly centered in the browser and I'd like to fix it. I set the width to 788px (embedded Div Layout CSS). Here is the link to the site: [URL]
Below is the javascript code:
window.onresize=positionPage;
String.prototype.trim = function() { return this.replace(/^s+|s+$/, ''); };
function positionPage(){
Width = 0;
if(window.innerWidth){
Width = window.innerWidth;
}if(document.body.clientWidth){
Width = document.body.clientWidth;
}Left = Math.floor((Width - 992) / 2);
if(Left > 0){
document.getElementById("Div-Layout").style.left = Left + "px";
}}
<!--
function MM_reloadPage(init) {
//reloads the window if Nav4 resized
if (init==true) with (navigator) {
if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW
|| innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
Not what i would like but the client wants the browser re-sized on the site loading/refreshing... Been using the following and it works fine.... apart from in Safari. how i can get it working in Safari, or no chance?
Code JavaScript:
$(document).ready(function() {
window.resizeTo(1152, 866);
});
if there was a script to disable only the horizontal scroll bar in a browser window on a site with frames?
View 7 Replies View RelatedDoes anyone know how it would be possible to create bar at the bottom of the browser window that doesn't reload when you navigate thru the site. A good example is the chatbox that Facebook has. When you click links throughout the site the chat box is constant and doesn't reload.
View 1 Replies View RelatedI prefer jQuery over flash and not sure how to tackle this, so please advise as best you can. Trying to create a site that allows for images to go full browser and then have the ability to have the other images slide in based on a click.
I also want to float a menu that will allow it to pull in other media (video, that would slide in the same way). The best example I can share is this: http://j.mp/5U79i1 What he is using is flash based (slideshowpro director and slideshow pro for flash). Not interested in flash for this personal project.
i've got a bunch of webaplications in use that the users have open in a browser all day. and so far every thing is perfecto. my problems start when the user during the day get emails with links in them... being humans they click those links and some times they "loose" the webaplication from the original browser. this also happens of course when they use their bookmarks etc.
what i would like is to include a javascript that forces a new browser window wtih the new url & leaves the original site as-is if a url is sent to the browser.
Can anyone show me how to show an alert box any time ctrl -n is pressed.
View 3 Replies View Relatedsome html here
<script src=1.js></script>
some html here
<script src=2.js></script>
some html here
I want to execute 2.js first, but I can not touch 1.js 2.js. I need to write
a wrapper around them. I am thinking to add a onload of a image file after
2.js to make 1.js active.
some html here
<script src=1.js></script>
some html here
<script src=2.js></script>
<img load 1.js">
some html here
How do I do this?
Is it possible to enter or call c++ code blocks from javascript functions? If so, how?
View 13 Replies View RelatedI have the below code in a form to re-form the characters entered into it
into a dollar amount and also only accept numeric characters. However, when
I enter the numbers "113" (which appears after the reformatting process as
1.13), it no longer accepts any other characters. I also am not able to
deleted from the text box that I entered it in. I was wondering if anyone
has any ideas why this is happening.
HTML code: