the problem has been sloved.
http://stackoverflow.com/questions/8135797/c-sharp-xmlrpc-custom-fields
the problem has been sloved.
http://stackoverflow.com/questions/8135797/c-sharp-xmlrpc-custom-fields
OK, I had to change from my Wordpress(.org) site to my Wordpress(.com) site to resolve the -32700 error.
I added the custom field code, but nothing appeared in the post or the management console.
Maybe the theme I'm using does not show custom fields.
...still checking...
I'm also looking at this: http://codex.wordpress.org/Using_Custom_Fields
its not the theme, while editing post, top right corner you will see screen options, click that and select custom fields.
The problem is that the c# app fails to insert custom fields:(
Im trying to to write a program in C# and I'm stuck. The program suppose to create a post on wordpress via xmlrpc. I can create the post successfully but I have problems creating custom fields for the post. So when I open created post, custom fields are never there. I hope some of you gurus can help me as I am stuck for 3 days now and cant figure out what to do, feel absolutely helpless:(
Heres some code:
public struct customField
{
public string key;
public string value;
}
public struct newPost
{
public string[] categories;
public string title;
public string description;
public string mt_excerpt;
public customField[] cf;
}
public interface IcreatePost
{
[CookComputing.XmlRpc.XmlRpcMethod("metaWeblog.newPost")]
string NewPost(int blogId, string strUserName,
string strPassword, newPost content, int publish);
}
Heres how I set values for the object
customField newCustomField2 = default(customField);
newCustomField2.key = "some data";
newCustomField2.value = "some data";
newPost newBlogPost = default(newPost);
newBlogPost.title = "Some Title";
newBlogPost.description = "Some Content";
newBlogPost.cf = new customField[] { newCustomField2 };
createPost(newBlogPost);
Function called:
public void createPost(newPost np)
{
string postid;
icp = (IcreatePost)XmlRpcProxyGen.Create(typeof(IcreatePost));
clientProtocol = (XmlRpcClientProtocol)icp;
clientProtocol.Url = "http://127.0.0.1/xmlrpc.php";
try
{
postid = icp.NewPost(1, "admin", "1234", np, 1);
}
catch (Exception ex)
{
MessageBox.Show("createPost ERROR ->"+ ex.Message);
}
}
I'm surprised it works in Firefox. 0px is an invalid style in FF.
FF wants zero values to be just a 0, without the units of measure.
Thank you very helpful
is there any function that converts the values of an array to string?
i tried with array_values but i dont know how
function displayString($arrayText) {
if (count($alertArr) > 0) {
$string = '';
foreach ($arrayTextas $val) {
$string .= $val."<br />\n";
}
return $string;
} else {
return false;
}
}
thanx for sharing:)
I've used Java, PHP and ASP. Most Internet Service Providers support PHP at no extra cost to you. It is not that hard to learn and a google search should provide you with a pre-made solution.
What tools are you using to create web pages?
Basically this is how it works. The code I sent will give you an upload box on your page. When the user hits submit the file is sent to the server. You need some kind of program on the server to receive this and save it.
i was askin alexberr;)
I want to know how to create a registration page and login page ... any tutorials about this and i need some complete web templates too(not just home page)... can any one help me.....any ref plz
try this script its an awsome way to start! http://dodona.wordpress.com/puls/
I have a problem with LABEL followed by P tag.
form#two p { display: inline; margin-bottom: 10px; width:200px; } form#two label { display: block; float: left; width: 100px; margin-bottom: 10px; width: 12em; padding-right: 5px; font-weight: bold; text-align: right; color: #AB0101; }
My goal is to get LABEL and P contents displayed on the same line. It works fine in firefox but doesnt in IE6. Can some1 pls help me out? and make it work in IE6? Cheers
my problem was i had an extra clear:left under P;)
Thanks Folks.
Link for image that i want to accomplish:
http://img511.imageshack.us/img511/7827/rates.jpgHTML Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <content Name="CONTENT WINDOW"> <item Border="10" Width="600" Height="350" > <![CDATA[<font color="#ff9900" size="50"><b><u>Apartment Malindi</u></b></font><br><br> <img src="content/image1.jpg"> <font color="#33cc33" size="12"><b> >> Great for 6 PAX </b></font> <font color="#33cc33" size="12"><b> >> 2 Bedrooms </b></font> <font color="#33cc33" size="12"><b> >> 2 Bathrooms </b></font> <font color="#33cc33" size="12"><b> >> Dining Room for 6 PAX </b></font> <font color="#33cc33" size="12"><b> >> Air Conditioning </b></font> <font color="#33cc33" size="12"><b> >> Ceiling Fans </b></font> <font color="#33cc33" size="12"><b> >> Living Room </b></font> <font color="#33cc33" size="12"><b> >> Balcony </b></font> <font color="#33cc33" size="12"><b> >> Kitchen </b></font> ]]> </item> </content>
Snapshot for code as above
http://img683.imageshack.us/img683/7105/sampleh.jpgPerhaps, u could also tell me how i can improve above HTML code so that there is no line btwn TEXT & TEXT does spool below the image ?
MAve
PS: i tested the links, they are valid
My man try something like that (see below)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body
{
color:#33cc33;
font-size:12px;
}
ul li
{
font-weight:bold;
}
#container
{
width:900px;
margin:0 auto;
}
#col1
{
width:450px;
float:left;
}
#col2
{
width:450px;
float:left;
}
-->
</style>
</head>
<body>
<div id="container">
<div id="col1">dfs
<img src="content/image1.jpg" width="100" height="100" /></div>
<div id="col2">
<ul>
<li>Great for 6 PAX</li>
<li>Great for 6 PAX</li>
<li>Great for 6 PAX</li>
<li>Great for 6 PAX</li>
<li>Great for 6 PAX</li>
<li>Great for 6 PAX</li>
<li>Great for 6 …
I have a problem with LABEL followed by P tag.
form#two p {
display: inline;
margin-bottom: 10px;
width:200px;
}
form#two label {
display: block;
float: left;
width: 100px;
margin-bottom: 10px;
width: 12em;
padding-right: 5px;
font-weight: bold;
text-align: right;
color: #AB0101;
}
My goal is to get LABEL and P contents displayed on the same line. It works fine in firefox but doesnt in IE6. Can some1 pls help me out? and make it work in IE6? Cheers
try this
body{margin:0;padding:0;}
can someone please give adviced on how i could put an upload box for my website,so record labels could upload directly to my website, please help me with the code or explanation of how to do it.thank you all for what you do for othere people
are you using php?
Hey,
I'm having some huge issues with the layout of my main body area. The attachment shows how it's suppose to look.
I've recently switched from table-based layouts to css positioning and this is why i'm struggling. I need help with the floats and clears lol.
this is my css for the elements. #content is the container.
#content { position: absolute; top: 223px; left: 214px; width: 541px; height: 524px; } /* Main Body Content */ .content-article { color: #4d4d4d; font-size: 10pt; width: 348px; max-height: 210px; /*overflow: hidden;*/ padding-left: 17px; padding-bottom: 10px; } .content-info-container { background-color: #fde3c0; width: 190px; height: 280px; padding: 10px; } .content-info { display: block; background-color: #faac55; color: #ffffff; font-size: 14pt; width: 170px; height: 70px; } .featured-home-container { width: 348px; height: 314px; background-color: #cccccc; } .featured-home-img { background-color: #999999; position: absolute; top: 215px; left: 17px; width: 314px; height: 180px; /*background-image: url(); */ } .featured-description { font-size: 10pt; color: #4d4d4d; }
Hey i can do it for you for a $50;)
wow great news, i've recently started learning zend loving it all the way!
I like the code idea too
+1
sorry may be its a bit off the topic but have you tried php? very simple to use;)
i find it really hard to get used to any of those social networking tools:(
you cannot have a segment larger 64Kb try different compiler
Hi every1 and happy new year. Im learning how to use mod_rewrtie and looking for a kind soul to show me how to properly markup following url:
http://www.myurl.com/employees?name=John+Doe
to
http://www.myurl.com/JohnDoe
Thank you:)
I use a similar method for creating an rss feed. My solution is to extract only the first paragraph. If needed you could delete some or all tags from it (e.g. img).
Hi mate, thx for helping me out again:) So how do you tell your script to get only the first paragraph? I was thinking of counting characters but because of the html tags this method is not reliable.
Hi guys, I'm back for some help. Spent days googling for the answer... cant do it anymore. Could somebody please tell me how to simulate Joomla readmore function. What I mean is: I have a mysql database with news articles. Each article is stored in the 'news' table in the 'content' field. 'content' filed has mixed content HTML and TEXT. so the reference to images and all the html formating stored in that field among the actual article text.
My question is how can I split articles to display short intro with a readmore link to the full text?
I wanna avoid creating an extra field in the database with intro text.
Any help is appreciated. Thank you in advance!
Thanks. I had a lot of help too while learning jQuery. Glad to return the favour.
If it solved your problem, would you please mark this thread solved.
done!
1. The reason I use div's is because span's often give me trouble.
2. toggleClass toggles a specific class on and off, so you can't use it like you do now
3. I gave my div the id #toggle, so I could bind the click to.
4. In the click event I check the class of the toggle div, and set the other one.
5. Since I'm changing the classes now, I had to replace the # in the CSS with a dot.<html> <head> <script type="text/javascript" src="../jquery-1.3.2.min.js"></script> <style> .play { width:100px; height:60px; background-image: url(play.png); float:left; } .pause { width:100px; height:60px; background-image: url(pause.png); float:left; } </style> </head> <body> <div id="toggle" class="play"></div> <script type="text/javascript"> $(document).ready(function() { $('#toggle').bind("click", function() { if ($(this).attr("class") == "play") $(this).attr("class", "pause"); else $(this).attr("class", "play"); }); }); </script> </body> </html>
Thank you very much for your post!!! Very informative and straight to the point! I admire your dedication helping others like you do! Superb!!!!
Hi I can't get my toggle button to work so once again I'm here hoping for some good soul to help me. Below is my jQuery code. I have 2 css clasess 1st is play with a referenace to jpg play and the 2nd one has reference to pause.jpg. All i want is simply to toggle between the two.
html
<span id="play"></span>
css
#play
{
width:100px;
height:60px;
background-image: url(../images/play.jpg);
float:left;
}
#pause
{
width:100px;
height:60px;
background-image: url(../images/pause.jpg);
float:left;
}
jQuery
$(document).ready(function(){
$('#play').click(function(){
$(this).toggleClass("#pause");
});
});
Problem solved!
#container {
width:800px;
margin:0 auto;
padding:0;
background-color: #CCC;
}
#footer {
clear:both;
}
/* ### MENU ### */
#adminmenu {
position:relative;
width:750px;
left:50%;
margin-left:-375px;
height:25px;
}
ul {
position:relative;
font-family: Arial, Verdana;
font-size: 14px;
margin: 0;
padding: 0;
list-style: none;
text-align: center;
}
ul li {
display: block;
position: relative;
float: left;
width:150px;
}
li ul {
display: none;
}
ul li a {
display: block;
text-decoration: none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 15px 5px 15px;
background: #2C5463;
margin-left: 1px;
white-space: nowrap;
}
ul li a:hover {
background: #617F8A;
}
li:hover ul {
display: block;
position: absolute;
}
li:hover li {
float: none;
font-size: 11px;
}
li:hover a {
background: #617F8A;
}
li:hover li a:hover {
background: #95A9B1;
}
/* ### END MENU ### */
I don't know what do you want to center, text or element. If you want to center the text, try this:
# ul li a { display: block; text-decoration: none; color: #ffffff; border-top: 1px solid #ffffff; padding: 5px 15px 5px 15px; background: #2C5463; margin-left: 1px; white-space: nowrap;/* white-space ignore text-align property, you should remove */ text-align: center }
Hi thx for your reply but i already have text center. I wanna center the menu itself.
Hi guys, I've gone through many websites trying to find a solution. Since I'm not that good with css (just started learning) i've failed to get it to work. I have a simple css menu that i've been trying to center for hours now:( could somebody help me out and give me an opportunity to learn from you I'd really appreciate it. Thank you in advance.
css
#container {
width:800px;
margin:0 auto;
padding:0;
background-color: #CCC;
}
#footer
{
clear:both;
}
/* ### MENU ### */
#adminmenu
{
width:100%;
}
ul {
position:relative;
font-family: Arial, Verdana;
font-size: 14px;
margin: 0;
padding: 0;
list-style: none;
text-align: center;
}
ul li {
display: block;
position: relative;
float: left;
}
li ul {
display: none;
}
ul li a {
display: block;
text-decoration: none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 15px 5px 15px;
background: #2C5463;
margin-left: 1px;
white-space: nowrap;
}
ul li a:hover {
background: #617F8A;
}
li:hover ul {
display: block;
position: absolute;
}
li:hover li {
float: none;
font-size: 11px;
}
li:hover a {
background: #617F8A;
}
li:hover li a:hover {
background: #95A9B1;
}
/* ### END MENU ### */
HTML
<body>
<div id="container">
Admin Panel
<div id="adminmenu">
<ul>
<li><a href="index.php">Main Menu</a></li>
<li><a href="menu2.php">Menu2</a></li>
<li><a href="menu3.php">Menu3</a>
<ul>
<li><a href="menu4.php">menu4</a></li>
<li><a href="menu5.php">menu5</a></li>
</ul>
</li>
</ul>
</div>
<div id="footer">Footer</div>
</div>
</body>
$(function(){ $("ul.sc_menu a").click(function() { $('#content #mainbg #infobox #trackinfo').animate({opacity:"0"}, function(){ alert('animated'); $.post('projects-agent.php', {'title': $(this).text()}, function(data){ alert(data); $('#content #mainbg #infobox #trackinfo').html(data); $('#content #mainbg #infobox #trackinfo').fadeIn('fast'); }); }); return false; }); });
Do the alerts go off with the code? It looked like a few syntax errors...
They should be cleaned up. Are you sure the php file is returning a http 200 and data? Also, I'd try to make sure you audioplayer is present.
got it! thank you for your time and help!!
This is what I've tried and it didnt work:(
$(document).ready(function() {
soundManager.debugMode = false;
$("ul.sc_menu a").click(function()
{
//$('#mainbg').fadeOut("slow");
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"},function(){$.post('projects-agent.php', {'title': $(this).text()},function(data){$('#content #mainbg #infobox #trackinfo').html(data);$('#content #mainbg #infobox #trackinfo').animate({opacity:"1"})});
;
threeSixtyPlayer.init();
});
return false;
});
});
This is what I've tried and it didnt work:(
$(document).ready(function() {
soundManager.debugMode = false;
$("ul.sc_menu a").click(function()
{
//$('#mainbg').fadeOut("slow");
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"},function(){$.post('projects-agent.php', {'title': $(this).text()},function(data){$('#content #mainbg #infobox #trackinfo').html(data);$('#content #mainbg #infobox #trackinfo').animate({opacity:"1"})});
;
threeSixtyPlayer.init();
});
return false;
});
});
hi thank you for your reply, its easier said than done, i can't get the syntax right! could you please kindly rewrite the code? cheers
Hi guys, I spent the whole day (thats 8 hours straight) trying to get a simple jQuery function to work but failed miserably!!! I very very new to the jQ scene and I know I have a lot of catching up to do!
Could somebody get this to work for me ???
All i want is when user clicks is:
1.the box with info fades out
2. when data returned from the database the box fades in with the new data!
What happens now is while the box fading out i can see new set of data already loaded and thats a complete FAIL of what I interned to do. ANY HELP IS GREATLY APPRECIATED! Peace.
$(document).ready(function() {
$("ul.sc_menu a").click(function()
{
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"});
$.post('projects-agent.php', {'title': $(this).text()}, function(data)
{
$('#content #mainbg #infobox #trackinfo').html(data);
$('#content #mainbg #infobox #trackinfo').animate({opacity:"1"});
});
return false;
});
});
thx for your reply, what im trying to do is update some object properties and keep that object in that array. in other words i want the change of the object properties reflected in the array.
Greetings to all PHP gurus out there! Since I'm fairly new to php programming I have a question for you all. I have an array of objects, each object has a unique id property. What is the best way to alter some properties of that particular object?
Ablitz,
Waaaaahaaaay! There's a certain satisfaction in getting code to work. I think you are feeling it right now. Well done, my contribution was minimal.
There's something you might like to watch when building strings in Javascript. It may not matter too much here but with sunstantial Ajax applications, web pages tend to have a long life in users' browsers so you really need to do everything you can to avoid memory leakage.
Javascript is prone to nasty memory leaks if you concatenate strings with
xxx = xxx + yyy
orxxx += yyy
.You might consider rewriting:
textarea = '<div id="'+obj.id+'_editor">'; textarea += '<img src="images/ajax-loader.gif" />'; button = '</div><div id="'+obj.id+'_controls"><input id="'+obj.id+'_save" type="button" value="SAVE" /> OR <input id="'+obj.id+'_cancel" type="button" value="CANCEL" /></div>';
as the single statement:
textarea = '<div id="'+obj.id+'_editor"><img src="images/ajax-loader.gif" /></div><div id="'+obj.id+'_controls"><input id="'+obj.id+'_save" type="button" value="SAVE" /> OR <input id="'+obj.id+'_cancel" type="button" value="CANCEL" /></div>';
You can do this because you concatenate textarea+button just after they are created (and as far as I can see, you don't need the separate parts).
Somtimes you need to build strings in a loop. At first it appears that you can't avoid
+
or+=
, which can get very expesive in memory. Well it just happens that Javascript Arrays are really cheap and they have a great methodjoin()
. Therefore, you can build strings piecemeal, in an array, then eventually join the pieces. Though it's overkill here, the following is actually efficient javascript.myStringArray = []; myStringArray.push('<div id="'+obj.id+'_editor">'); myStringArray.push('<img src="images/ajax-loader.gif" />'); myStringArray.push('</div><div id="'+obj.id+'_controls"><input id="'+obj.id+'_save" type="button" value="SAVE" …
Hi, the first A in Ajax is for asynchronous, BUT, you can set the call to behave Synchronous, so your alert will wait until the request is finished. Just add the following to your request options:
asynchronous: false, so your new code will look like:
by default this is set to true, so it becomes AJAX :-D. with the value of false it behave just like any other request. Note that if your request takes some time executing you will add that time to your total execution time..
refer to http://www.prototypejs.org/api/ajax/options for documentation on how prototype works.
.::AleX::.
wow thx mate, some interesting info! I'll give it a go!
Mate thank you so much for explaing to me how it all works, your comments helped me understand the process and i came up with a following solution its all works now!!! :))) I even managed to add a loading gif ;)
if((obj.id).substr(0,4)=='divi')
{
textarea = '<div id="'+obj.id+'_editor">';
textarea+='<img src="images/ajax-loader.gif" />';
button = '</div><div id="'+obj.id+'_controls"><input id="'+obj.id+'_save" type="button" value="SAVE" /> OR <input id="'+obj.id+'_cancel" type="button" value="CANCEL" /></div>';
new Insertion.After(obj, textarea+button);
Event.observe(obj.id+'_save', 'click', function(){saveChanges(obj)}, false);
Event.observe(obj.id+'_cancel', 'click', function(){cleanUp(obj)}, false);
new Ajax.Request("categories-inset.php",
{
method: 'get',
parameters : "divid=1&catid=14&subcatid=31",
onSuccess : function(resp)
{
document.getElementById(obj.id+"_editor").innerHTML=resp.responseText;
}
,
onFailure : function(resp)
{
alert("Oops, there's been an error.");
}
});
i just tried using Updater, looks like it serves completely different purpose, i really need that responseText to fill constructed div...
That's the clever thing about AJAX, you don't have to wait - at least not in the conventional way. Your code establishes a 'listener' with the code
onSuccess : function(resp) {textarea2=resp.responseText;}
. This function fires automatically if/when the requested file successfully returns a response.
Thx again for dedicating yr time, I've finally got the above point. You see the thing is, categories-inset.php returns 3 SELECT boxes. User doesnt see them at first only when AJAX code triggered. When code is executed, javascript creates a new DIV and insertHTML those 3 SELECT boxes. Now because of that delay i get a blank DIV.
I think it is working. Remember my suggestion to replace
textarea2=resp.responseText;
withalert(resp.responseText);
? (I should also have said to delete all other alerts) If you try what I suggest then the response from "categories-inset.php" should be reliably displayed.Airshow
I did try this previously and yes it did work, alert(resp.responseText); returns html table with 3 SELECT boxes.
Do you know by any chance how can i solve this problem? would new Ajax.Updater make any difference?
Ablitz,
Take a deep breath and read carefully .....
This is actually not so weird. Remember that the "A" in "AJAX" stands for "asynchronous". This means that once an AJAX request has been made, there are two "code streams". (To muddy the waters a bit, javascript is single threaded so we can't say "two threads" but in concept, that's what happens).
In other words, the "mainstream" code (which made an AJAX request) marches on to completion without waiting for the AJAX reposnse to come back. The AJAX response has its own agenda, independent of the mainstream, and is dependent on the server serving its response.
Therefore, when your code makes its request (new Ajax.Request() with its various parameters) there is every chance that it will immediately proceed to the first alert(textarea2) before "categories-inset.php" has been served into the AJAX object.
There then follows a lengthy period (in code execution timescales) while the alert is presented, you read the message and get the cursor over the OK button.
While the alert is presented, two things happen:
- Execution of your second alert(textarea2) is held up.
- categories-inset.php has time to repond, and hence fire the "onsuccess" function, populating the textarea2 variable with its response.
When you click the first alert's OK button, your mainstream code is released to continue and the second alert(textarea2) is executed. The second alert(textarea2) presents categories-inset.php's responseText.
If you've followed all that, then you will also spot there's actually no guarantee that categories-inset.php will have reponded while the …
NOTHING working. Ablitz your code in PHP and i work with C#. iv'e try servel options but still NOT. the code have to check the "signNumber" too not only the range between dates. in ABSTRACT = "take the signNumber and check if is available between that two dates if yes, insert to the database if not throw messagebox - NOT AVAILABLE"
LightHead provided you with a query where you check for signNumber too.
This is what you do:
1. Create Connection to Database (you should know how to do that, if not, look for tutorials there are plenty of those around)
2. Query Database (use LightHead's SQL query)
3. Handle Response
Make sure that startDate endDate ARE DATES in your database and not just simple TEXT or VARCHAR...
$q="SELECT * FROM BillBoardTable WHERE (fromDate > 20 / 07 / 2009) AND
(endDate < 27 / 07 / 2009)";
$result = mysql_query($q, $conn);
$data = mysql_fetch_array($result)
if($data.length>0)
{
echo('ALready booked. Choose different dates');
}
how about this code:
SELECT * FROM BillBoardTable WHERE (fromDate > 20 / 07 / 2009) AND
(endDate < 27 / 07 / 2009)
Hi, use escape thingy like that document.getElementById(\'comment\')
do you see your coment elelment id? its being treated like a varible so use escape thingy \ cheers hope that helps
Hello, i need help in some subject i can't handle with for few days. lets say i have form that handle with some rent order (like....billiboards) after the user choose the number of the billboard and the Location and everything else, he need to choose 2 dates. one for the publish day and one for the getOFF day. i have odbc database that hold all the information about the billboards etc... how can i make some "if" or queries that will check that this billboard is not ordered in that range of days? for now i only have the insert handle. PLEASE HELP.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Odbc;
namespace forumArt
{
public partial class addNewCampaign : Form
{
public addNewCampaign()
{
InitializeComponent();
}
private void addNewCampaign_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'dataSet1.customers' table. You can move, or remove it, as needed.
this.customersTableAdapter.Fill(this.dataSet1.customers);
// TODO: This line of code loads data into the 'dataSet1.signsDetails' table. You can move, or remove it, as needed.
this.signsDetailsTableAdapter.Fill(this.dataSet1.signsDetails);
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
private void button1_Click(object sender, EventArgs e)
{
if (signNumber.Text == "")
{
MessageBox.Show("חובה לבחור את מספר השלט");
}
if (companyName.Text == "")
{
MessageBox.Show("נא לבחור את שם החברה המזמינה");
}
else
{
try
{
OdbcConnection conn = new OdbcConnection("dsn=forumArtDataBase");
OdbcCommand cmd = new OdbcCommand("insert into orders(signNumber,fromDate,toDate,companyName,comments) values ('" + signNumber.Text + "','" …
Hi Everyone! I'm currently working on MySQL/PHP/JavaScript project using AJAX. I came across some weird abnormality and wanted to share with you and hopefully find a solution to this problem.
for some reason alert(textarea2); shows nothing but if I place another alert(textarea2); right after the first one it works, second pop-up contains responseText....
also I've tried alert(resp.responseText); it worked fine, could someone please point me in the right direction, i really need some assistance, cheers!
new Ajax.Request("categories-inset.php",
{
method: 'get',
parameters : "divid=1&catid=14&subcatid=31",
onSuccess : function(resp)
{
textarea2=resp.responseText;
}
,
onFailure : function(resp)
{
alert("Oops, there's been an error.");
}
});
alert(textarea2);