cooldude832
Members-
Posts
4,793 -
Joined
-
Last visited
Never
Contact Methods
-
Website URL
http://www.scriptbetter.net
Profile Information
-
Gender
Not Telling
cooldude832's Achievements
Advanced Member (4/5)
0
Reputation
-
realized the date parameters were making it write giant arrays that were 99.999% blank
-
I have a "growing" div container on a page and for some reason this code is executing really slowly http://kseego.com/e_cal.php that is the demo of it the code running it is function ecal_date_toggle(ecal_day){ if(in_array(ecal_day,ecal_dates_open)){ document.getElementById('ecal_day_'+ecal_day).innerHTML=""; document.getElementById('ecal_day_'+ecal_day).style.display='none'; ecal_dates_open[ecal_day] = 0; } else{ maker_date = new Date(ecal_day.substr(0,4)+","+ecal_day.substr(4,2)+","+ecal_day.substr(6)); maker_date = new Date(ecal_day.substr(0,4)+","+ecal_day.substr(4,2)+","+ecal_day.substr(6)); ecal_dates_open[ecal_day] = ecal_day; var box = "<div id='ecal_day_"+ecal_day+"' class='ecal_dates'>"+maker_date+" <input type='text' name='ecal_date_start[ecal_day]' value='start time' /><input type='text' name='ecal_date_end[ecal_day]' value='end time' /><img src='/images/icons/delete.png' alt='delete' onclick='cal_date_toggle(ecal_day);' />"; document.getElementById('ecal_date_toggle').innerHTML=document.getElementById('ecal_date_toggle').innerHTML+box; } } basically it checks to see if a div is added, if so then destroy the content in it and set it to off, otherwise write the new div and add it on to the bigger box. any suggestions would be useful.
-
IE says object doesn't support this property.
-
Apparently I'm being old school or something but using the <a name="top"></a> <a href="#top">Top</a> is causing an error in firefox and a fatal error in IE. Any idea how to do this right?
-
So I have this bit of code that pulls content into a center column (You can see it working kseego.com click the left column) and I am trying to setup an array of values in the called php script so they are set in the parent document so I can access them. The bit of code does this <?php if(mysql_num_rows($r) >0){ echo "<script type=text/javascript'>"; echo "var events_ids=new Array();"; echo "var events_dates=new Array();"; echo "var events_cats=new Array();"; echo "var events_open=new Array();"; echo "</script>"; $i = 0; while($row = mysql_fetch_assoc($r)){ write_ebox($row['EventID'],$row['ImageID'],$row['Ext'],$row['Title'],$row['StartDate'],$row['UserID'],$row['Poster'],$row['StartTime'], $row['EndTime'],$i,$row['CatID']); $i++; } } ?> In the write_ebox function I populate those 4 arrays with values using <?php echo "<script type=text/javascript'>"; echo "events_ids[".$i."]='event_div_".$id."'"; echo "events_dates[".$i."]='".date('j',strtotime($date))."'"; echo "events_cats[".$i."]='".$cat."'"; echo "events_open[".$i."]=0"; echo "</script>"; ?> However when I look in firebug I don't see those arrays even showing up any ideas on how to do this?
-
Issue reading as spaces (they encode as the ? diamond in FF)
cooldude832 replied to cooldude832's topic in HTML Help
its only issues on new uploads so I am wondering if my server got updated without me knowing -
Issue reading as spaces (they encode as the ? diamond in FF)
cooldude832 replied to cooldude832's topic in HTML Help
notepad++ ANSI DOS/Windows not sure if I changed something from it before but its doing it on multiple pages. -
Issue reading as spaces (they encode as the ? diamond in FF)
cooldude832 posted a topic in HTML Help
have a bit of code <span style='color:#cc0000; font-size: 14px;'>* </span>Location name and the are failing to render in FF and chrome. Page does validate in w3 just fine encoding is <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> have it on other pages working just fine so??? -
Sending a request fails if its altered?
cooldude832 replied to cooldude832's topic in Javascript Help
solved it called it from a new spot but didn't make sense Also it didn't error report any illegal var names -
I have been using this ajax request without an issue function get_my_events(ads){ var xmlhttp; if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else if (window.ActiveXObject){ // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } else{ alert("Your browser does not support XMLHTTP!"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4){ document.getElementById('events_center').innerHTML=""; document.getElementById('events_center').innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","e_get.php?type=mine&ad="+ads,true); xmlhttp.send(null); } However when i try to adapt it in a new function any altercations to it at all and the browser doesn't do anything. Firebug doesn't even show the request going and I don't see any errors comming through. Any ideas? I am calling it within a function of a function i.e get_cats() calls get_subcats() calls get_my_events2(); What else I am noticing is firefox doesn't even error when I go to call to an undefined function when the calling name does not match the function name i.e function setup_cats(CatID){ var xmlhttp; if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else if (window.ActiveXObject){ // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } else{ alert("Your browser does not support XMLHTTP!"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4){ cats=xmlhttp.responseText; cats_split=cats.split(","); i = 0; cats = cats_split.length; cats_status = new Array(cats); cats_open = new Array(cats); while(i<cats){ cats_status[i] = 1; cats_open[i] = cats_split[i]; i++; } #SEE THIS LINE BELOW IS GET_MYEVENTS2 BUT NO FUNCTION CALLED THIS ANYWHERE! get_my_events2(1); events_toggle('open'); } } xmlhttp.open("GET","cats2.php?p="+CatID,true); xmlhttp.send(null); } and there is no get_my_events2 it is now e_dat but no error (and no loading) function e_data(ads){ var xmlhttp; if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else if (window.ActiveXObject){ // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } else{ alert("Your browser does not support XMLHTTP!"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4){ document.getElementById('events_center').innerHTML=""; document.getElementById('events_center').innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","e_get.php?type=cat=&ad="+ads,true); xmlhttp.send(""); } Any help be great on this cause I'm totally confused
-
sorry how this get in the ajax baord went to php?
-
then why am I getting: Fatal error: Cannot instantiate non-existent class: easyimageeditor in /homepages/26/d294404313/htdocs/kseego/scripts/functions.php on line 132
-
I have a class written in another file that handles my image resizing. Can I do this (php says I can't calling a non-existent class), but I know its there becuase the require doesn't fail above <?php <?php require_once("image_load.php"); ... .... function image_upload($tmp_name,$imgid){ $image = new easyImageEdit(); $image->load(UPLOADS.$tmp_name); $image->resizeToWidth(250); } ?>
-
Page is w3 compliant for both css and xhtml (transitional) however everypage load my firefox error console fills with: Warning: Expected end of value for property but found 'vertical-align'. Error in parsing value for property 'width'. Declaration dropped. Source File: http://kseego.com/ Line: 0 any ideas? the Line: 0 is what is confusing me the most