Wednesday, 18 September 2013

In Biztalk Mapping Remove Empty Child record

In Biztalk Mapping Remove Empty Child record

plz find my map below.

where in my first script file i am checking if my reference type is equal
to A,B,C,D,E then only the rest of the elements should map to destination
schema, by doing that i am getting below output.

However i don't want to generate empty child tags. Could you please
suggest. I have checked some blogs where suggesting xslt, I have no idea
of xslt so want to do with functoid.

wordpress bloginfo() outside wordpress

wordpress bloginfo() outside wordpress

I want to use bloginfo() of wardpress out side wordpress directory. I have
tried this:
<?php require( $_SERVER['DOCUMENT_ROOT'] . '/KPR
website/updates/wp-includes/general-template.php' ); ?>
<script src="<?php bloginfo('wpurl'); ?>/js/jquery.min.js"></script>
But I have got this error:
Fatal error: Call to undefined function add_action() in
C:\xampp2\htdocs\website\updates\wp-includes\general-template.php on line
1315
Since I have not modified general-template.php, so I think I need to add
more require phps, Can anyone help?

username and password verification

username and password verification

" <div id="mainlogin" class="login_box">
<html:form action="login" method="post" onsubmit=" return
frmValidate();">
<div class="login-box-name">User Name:<span
class='star'>*</span></div><div
class="login-box-field">
<input id="id" name="id" class="form-login"
title="User Name" value="" size="25"
maxlength="20" oncopy="return false"
onpaste="return false" autocomplete="off"/>
</div>
<br/>
<br/>
<div class="login-box-name">Password:<span
class='star'>*</span></div><div
class="login-box-field">
<input id="password" name="password"
type="password" class="form-login"
title="Password" value="" size="25" maxlength="15"
oncopy="return false" onpaste="return false"
autocomplete="off"/>
</div>
<br/> <br/>
<!-- <span class="forgot"><a id ="resetpwd"
href="javascript:void(0)">Forgot Password</a></span>-->
<br/>
<span class="forgot"><input type="submit"
value="Login" /></span>
</html:form>
</div>"
i am trying to login but when i am entering the username and password and
click on the submit button then i am not getting moved to the next page .
well i am not sure whther i have to modify my "" line so that i can get
the database verification.. if yes please help me

Tuesday, 17 September 2013

Javascript: Need to proceed to another page

Javascript: Need to proceed to another page

I'm using Javascript for deleting a record. But my problem is, when I
click the image button its not redirecting to the page I want instead it
will remain on the page...
Here's my code:
echo "<button type='submit' name='deletePlaylist[]' value='" .
$row['id']."' onClick='myFunction()' style='border: 0; background:
transparent; cursor: pointer;'><img src='image/delete.png' /></button> ";
I'm using the button because I'm using an image if I used the input its
not working... So I decided to use button
Here's my code in my javascript:
function myFunction()
{
var Xcancel;
var Rokay=confirm("Are you sure you want to delete?");
if (Rokay==true)
{
window.location = 'delete.php';
}
else
{
Xcancel="You pressed Cancel!";
}
}
</script>
I already tried the window.navigate("delete.php"); or the
window.location.href='delete.php' also not working...
The confirmation message is displaying already but my main problem its not
going to the delete.php where in that form is my deleting function...
NOTE:
The button is under of the <form name='form' method='post' action="">, the
delete.php is in the same folder... Before there is no confirmation
message and its going to the delete.php but now I tried to insert a
confirmation message then its not going to the delete.php
Thank you in advance,!

PHP string goes empty unless echoed

PHP string goes empty unless echoed

I have the following test program:
#!/usr/bin/php
<?php
echo "Starting\n";
# Now read the file.
#
$file_pn = "contact.txt";
$fh = fopen($file_pn, 'r');
while (!feof($fh)) {
$line = fgets($fh);
$trimmed = trim($line);
echo "trimmed = <" . $trimmed . ">\n";
if (preg_match('/^\s*$/', $trimmed)) {
echo "Looks blank: trimmed = <" . $trimmed . ">\n";
#continue;
}
}
fclose($fh);
?>
The file being read has some blank lines and some non-blank lines. As
shown here, it acts as one would expect: only the lines that are actually
blank receive the "Looks blank" message, and trimmed = <>. But if I
comment out the echo statement in line 12 and run the script again,
$trimmed always appears to be the empty string when we get to the if
statement. It is as if $trimmed gets clobbered unless it has been echoed.
How can this be?

Eclipse crashes when it's starting

Eclipse crashes when it's starting

I try to launch my Eclipse, it starts window with logo but while loading
workbench it crashes.
Log is very long, so I put a link: http://textuploader.com/?p=6&id=TXieq

haskell FFI - using dll on non-windows os?

haskell FFI - using dll on non-windows os?

Can be a windows dll used interfaced with Haskell's FFI(Foreign Function
Interface) on a non windows OS? For example if I have OSX, can I interface
a .dll with FFI (use the dll functions) ?