|
The usual cause for this is a compilation error in the asmx page - when this ocurrs, the usual IE error page is sent down the response stream, which is text/html, rather than the XML that should be output
I'd check what is actually being returned (use a js alert() or write to a text field) - my guess is that it will be the error page, which will then tell you where the error ocurrs in the asmx...
(Or of course a Build -> Build Page should help if this is the cause)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
It turned out that the error occured because of a call to some resources. The resources exist on the development machine, but not on production and this cause an exception to be thrown.
|
|
|
|
|
I have musical Database on my WEB site. I want to make valid links from my musical compositions to the Amazon retail of CD/DVD discs with appropriate musical composition, How can i did it ?
Thanks in advance !
Regards.
|
|
|
|
|
You can find lots of information (a 300+ page pdf file) on the Amazon associates website if I remember correctly.
It's quite easy to implement, I did http://www.cheapoo.com ages ago using the Amazon API.
|
|
|
|
|
Oops - on URL : http://www.cheapoo.com returned answer :
"The requested URL could not be retrieved"
is everything correct ?
And where actually is it : "(a 300+ page pdf file) on the Amazon associates website if " ? Did you have link ?
Thanks in advance.
|
|
|
|
|
I am creating a web site for playing music and videos.But I am not sure how to go for it.
Do I need to embed the media player in htm file and then play my media files
OR is there any other or better way to do it.
Thanks
|
|
|
|
|
You can just use the Embed tag. Like so:
<embed src="C:\Song.mp3" autostart="true" hidden="false" loop="0"></embed>
Then change the file name to any file you want to embed. And you can change the Loop to the number of times you want the Video/Audio file to repeat (or set it to "Infinite").
Keep in mind though, if you have a QuickTime video (.mov) that you want to embed in your website, the computer that is viewing the website must have QuickTime installed.
|
|
|
|
|
Encoding a video in flash has become very popular.
Brad
Australian
I assume Microsoft would not use doors, because using Windows is faster.
|
|
|
|
|
This will really depend on your goals. Is this for an Intranet or the Internet? Do you want cross platform? Do you want to protect your media content? Do you want to users to have to use a special player to see your video? Do you want the users to easily link to the video?
Assuming you don't care about protected content and you want cross platform support then use MPEGs embeded r otherwise. If you want a fine grained control over your media, but don't necessarily want to protect it, then I agree with Brad's suggestion in that Flash is quite the attractive option now.
If you go the flash route though, make sure you pick up a copy of Flash 7.0 or newer. Anything older than that will be a pain (without 3rd party plug-ins) to work with video on.
|
|
|
|
|
hi all
i want to know how to call javascript function from flash
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
yes, you must called how url (javascript url), example:
javascript:myfunction()
Flash have a function to link invoque in current navigator, this javascript function will be in current html file what the flash animation.
Cuando salga el sol, no estare aqui...
|
|
|
|
|
Used to encode a given string.
decode() -> Used to decode a given string.
sendMail() -> Used to send mail from the uniqum site.
*************************************************/
//Function to send mail from the uniqum site.
function sendMail($fromemail,$toemail,$subject,$message,$cc="",$bcc="",$accType="")
{
global $Template;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From:"._WEBSITENAME_."<$fromemail>\r\n";
if ($cc!="")
{
$headers .= "CC: $cc\r\n";
}
if ($bcc!="")
{
$headers .= "BCC: $bcc\r\n";
}
if ($accType=='H')//Sending the mail using HTML TEMPLATE
{
$message= str_replace("TPL_CONTENT",$message,stripslashes($Template));
}
$to = $toemail;
$send = @mail($to,$subject,$message,$headers);
// echo "$send = @mail($to,$subject,$message,$headers);";
// echo " ";
}
//Function to encode a given string.
function encode($str)
{
$re_str = base64_encode($str);
$re_str = base64_encode($re_str);
$re_str = base64_encode($re_str);
$re_str = base64_encode($re_str);
$re_str = base64_encode($re_str);
return $re_str;
}
//Function to decode a given string.
function decode($str)
{
$re_str = base64_decode($str);
$re_str = base64_decode($re_str);
$re_str = base64_decode($re_str);
$re_str = base64_decode($re_str);
$re_str = base64_decode($re_str);
return $re_str;
}
?>
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
connect = mysql_pconnect($host,$dbusername,$dbpassword) or die ("Cannot connect to Database");
if($this->connect)
mysql_select_db($dbname,$this->connect) or die ("Please check the Database name");
//echo $this->connect;
}//End of constuctor function.
//Function to execute all type of queries.
function ExecuteQuery($Sql)
{
//echo $Sql;
$result = mysql_query($Sql,$this->connect) or die (mysql_error()." Please check the following query- ".$Sql);
return $result;
}
//Function to GetValue from a table.
function getTableValue($field,$table,$condition="")
{
$query = "SELECT $field as f1 FROM $table ";
if($condition<>"")
$query.=" WHERE $condition";
//echo " " . $query;
$result = $this->ExecuteQuery($query);
if(mysql_num_rows($result))
{
$row = mysql_fetch_object($result);
$f1 = $row->f1;
}
else
{
$f1 = "";
}
return $f1;
}//End of GetValue.
//Get an array of value from a table
function getTableValuesArray($table,$condition="")
{
$query = "SELECT * FROM $table ";
if($condition<>"")
$query .=" WHERE $condition";
/// echo " " . $query;
$result = $this->ExecuteQuery($query);
if(mysql_num_rows($result))
{
$row1 = mysql_fetch_array($result);
}
return $row1;
}
//Function to getComboValues from a table.
function getComboValues($name,$value,$curvalue,$table,$condition="",$caption="")
{
$query = "SELECT DISTINCT $name as f1,$value as f2 FROM $table $condition";
//echo $query;
$result = $this->ExecuteQuery($query);
$option ="";
if(mysql_num_rows($result))
{
if ($caption<>1)
{
if ($caption=="nocaption")
{
$option ="";
}
elseif ($caption!="")
{
$option ="$caption";
}
else
{
$option ="Select one";
}
}
while($row=mysql_fetch_object($result))
{
if($curvalue==$row->f2)
{
//echo " $curvalue:" . $row->f2;
$option .= "". ucwords(strtolower($row->f1)) . "";
}
else
$option .= "". ucwords(strtolower($row->f1)) . "";
}
}
return $option;
}//end of getComboValues.
//Function to insert all the data into the table.
function insertQuery($tablename,$dataArray)
{
if(is_array($dataArray))
{
$query = "INSERT INTO $tablename SET ";
$arrayCount = sizeof($dataArray);
$count = 1;
while(list($key,$val) = each($dataArray))
{
if ($count==$arrayCount)
$query .=" $key='$val'";
else
$query .="$key='$val', ";
$count ++;
}//End Of while loop
$this->ExecuteQuery($query);//Calling the execute query
}//end Of if loop
}//End of insertquery Function...
//Function to update the datas into the table.
function updateQuery($tablename,$dataArray,$condition="")
{
if(is_array($dataArray))
{
$query = "UPDATE $tablename SET ";
$arrayCount = sizeof($dataArray);
$count = 1;
while(list($key,$val) = each($dataArray))
{
if ($count==$arrayCount)
$query .=" $key='$val'";
else
$query .=" $key='$val', ";
$count ++;
}//End Of while loop
if ($condition!="")
{
$query .= " WHERE $condition ";
}//end of if
$this->ExecuteQuery($query);//Calling the execute query
}
}//End of updatequery Function...
//DELETE FUNCTION
function deleteQuery($tablename,$condition="")
{
$query = "DELETE FROM $tablename ";
if($condition!="")
{
$query .= " WHERE $condition";
}
$this->ExecuteQuery($query);//Calling the execute query
}//End Of deletequery
//Function to count the rows in a table.
function countRows($result)
{
if (is_resource($result))
{
return mysql_num_rows($result);
}
}//end of count row function.
//To get the InsertId of a table
function getInsertID()
{
return mysql_insert_id($this->connect);
}//end of getInsertID function
function getSendValuesArray($fieldArray,$table,$condition="")
{
$arguments = implode(",",$fieldArray);
$query = "SELECT $arguments FROM $table ";
if($condition<>"")
$query .=" WHERE $condition";
//echo " " . $query;
$result = $this->ExecuteQuery($query);
if(mysql_num_rows($result))
{
$row1 = mysql_fetch_array($result,MYSQL_ASSOC);
}
return $row1;
}
}//end of class db.
?>
////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
Although those are indeed very useful functions, this is a place for questions and occasionally some industry news.
I suggest you put some of that effort into an article.
Brad
Australian
I assume Microsoft would not use doors, because using Windows is faster.
|
|
|
|
|
Hi! i want to detect when a user closes browser using cross[close] button of the browser.
|
|
|
|
|
use this:
<body onunload="doFunction()">
Brad
Australian
I assume Microsoft would not use doors, because using Windows is faster.
|
|
|
|
|
is the event removed supported by IE?
|
|
|
|
|
yes
Brad
Australian
I assume Microsoft would not use doors, because using Windows is faster.
|
|
|
|
|
it is not supported by asp.net 2.0. please give an example.
|
|
|
|
|
It has nothing to do with the framework version. It's an even in the browser.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
please give me an example when this event is fired?
|
|
|
|
|
You realise that the event is named "onunload", and not "removed"?
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
|
Use the onunload event in the body tag. Note that when the event fires, the current window is closing, so if you want to do somehting you probably need to open a new window.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
but the unload event also fires when page is submitted. then how will i know that the cross button is clicked?
|
|
|
|
|
You have to keep track of what's happening, so that you know the reason why the document is unloaded. There is no way to detect the closing of the browser window itself, so you have to detect the other reasons for the document to be unloaded, and if none of those are happening, the reason has to be that the browser window is being closed.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|