So two questions here: If I use <input type="button" onclick="validate()"> then the enter key wouldn't work. However, I can use type="submit" but how would I invoke validate()?
I'm integrating FB social plugins - Like box and Like buttons (as iframes) - on a web page, but they don't work.
When I click on Like in "Like box", I get "Error" text with link, which displays a message dialog "The page at https://www.facebook.com/provocateur.eu could not be reached.".
JSON response is:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"Website Inaccessible","full":"The page at https:\/\/www.facebook.com\/provocateur.eu could not be reached.","errorUri":"\/connect\/connect_to_node_error.php?title=Website+Inaccessible&body=The+page+at+https\u00253A\u00252F\u00252Fwww.facebook.com\u00252Fprovocateur.eu+could+not+be+reached.&hash=AQARp73z7huT0Eiu"}}}
When I click on the Like button, the JSON response is:
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"An error occurred.","full":"There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https:\/\/developers.facebook.com\/tools\/lint\/) and fixing any errors.","errorUri":"\/connect\/connect_to_node_error.php?title=An+error+occurred.&body=There+was+an+error+liking+the+page.+If+you+are+the+page+owner\u00252C+please+try+running+your+page+through+the+linter+on+the+Facebook+devsite+\u002528https\u00253A\u00252F\u00252Fdevelopers.facebook.com\u00252Ftools\u00252Flint\u00252F\u002529+and+fixing+any+errors.&hash=AQAFI_8ieMUGPPxS"}}}
This is the "Like box" iframe code:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:240px; height:70px;" src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fprovocateur.eu&width=240&height=70&colorscheme=dark&show_faces=false&border_color&stream=false&header=true&appId=283499041689204"></iframe>
and this is the "Like button" iframe code:
<iframe frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:203px; height:21px;" src="//www.facebook.com/plugins/like.php?href&send=false&layout=button_count&width=203&show_faces=false&action=like&colorscheme=light&font=arial&height=21&appId=283499041689204"></iframe>
The behaviour is the same for admin and non-admin visitors and for any browser. I created application with the same name as FB page with appId 283499041689204. Web page is XHTML transitional valid, and it contains no errors according FB debugger/linter. Formely there was age restriction (17+), but I removed it and for the moment it is accessible for anyone (13+).
URL of web page: http://provocateur.eu/
URL of FB page: in the first error message
Any help appriciated. Thanks in advance.
I have a system where a listview is populated.
I want to be able to select one of these files and press an edit button, which will then take the selected data into another form.
I am trying to find a way to identify the selected item in the listview and take it to the next form.
How can i achieve this?
What code would I need to show?
Thanks
Hi All,
In my project i using LibXml to parse data, when i select a row in first controller i will take to next conttroller where i will get data using libxml if i click on the back button while loading the page i am getting exception. if i click afetr loading is completed it is working fine ca any one help me.
the exception is showing here
(void)connection:(NSURLConnection *)connection
didReceiveData:(NSData *)data {
// Process the downloaded chunk of data.
xmlParseChunk(_xmlParserContext, (const char *)[data bytes], [data length], 0);
}
Thank You
Hi,
I am new to MVC and have a grasp of the basic model, but still doing everything with postbacks etc.
One aspect of the UI I want to build is to have a drop-down-list of items with a button to add an item to the database and refresh the list. Achieving this with WebForms was straight forward as everything was wrapped in UpdatePanels, but what is the best approach to achieve this using MVC?
Part of the markup for the list and button look like this:
<table>
<tr>
<td><%=Html.DropDownList("JobTitleSelectList", Model.JobTitleSelectList, "(select job title)", new { @class = "data-entry-field" })%></td>
<td> </td>
<td><a id="AddJobTitleDialogLink" href="javascript: addJobTitleDialog();" title="Add Job Title"><img id="AddJobTitleButtonImage" src="/Content/Images/Icons/16x16/PlusGrey.png" border="0" /></a></td>
</tr>
</table>
The Dialog is a standard jquery Ui dialog, looks like this:
<div id="SingleTextEntryDialog" style="display:none">
<table>
<tr>
<td>Name:</td>
<td><input id="SingleTextEntryDialogText" type="text" size="25" /></td>
</tr>
</table>
</div>
I am guessing I need to put this into a UserControl / PartialView (are they the same thing?) Also with the strongly typed View how do I pass the Model or just the SelectList Property to the UserControl or is this not the case?
Nor sure if there should be form in the dialog div? or how that is going to postback via ajax.
Some examples show a lot of ajax code in the page something like: $.ajax({...});
I assume doing this using jquery is more code than asp.net webforms, but there is just more code to see doing a "View Source" on a page?
Your comments appreciated.
I wish to get the tweeter usename of a visitor to my site.
I do not wish to post statuses or access any other information.
I'd be happy to use OAuth, possibly with a 'Sign in with Twitter' button, but this then takes the user to a page which requests authorization for the application, that I wish to avoid.
Is there a way to get the username without authorization?
Thanks,
Daniel
Hi guys:
I get two frames, says A and B. Clicking a link in A will trigger page in B changing from URL_A to URL_B.
How do I remember URL_A, so that when users click cacnel button in URL_B, they can go back to URL_A?
Hi i am developing an app for my QA department. I need to programically get how many phone numbers are there in the entire address book. No user input. Just click a button and then get how many phonenumbers are there in the ENTIRE addressbook.
Please email me at [email protected]
Iam new to flex.
in my work I have a problem.
in my program i have to use three lists and one button.
one is employees list,2nd is managers list and third is details list.
depending on the selected items in the 2 lists i have display the items in detailed list
can any one help me?
thanks in advance.
I'm working on an app for a mobile device and would like to make a datagrid scrollbar button larger to enhance the touch screen usability. I do not want to alter the system settings windows display properties as this will affect the device as a whole.
Is there an easy way to alter the width of the scrollbar on a datagrid view?
Hi all,
I'm using the MessageBox class to show errors to users, and while that might not be the right behavior, it's very convenient. This is a touchscreen application, however, so I need the 'ok' button to be much larger than it is (curse my inordinately large fingers!).
I think that if I increase the font size in the dialog box, I should be ok. Is there a way to do that? Or really, is there any way to increase the dialog size?
Thanks
How to validate a textarea in a form.i.e, it should not be empty or have any new lines and if so raise an alert
<script>
function val()
{
//ifnewline found or blank raise an alert
}
</script>
<form>
<textarea name = "pt_text" rows = "8" cols = "8" class = "input" WRAP ></textarea>
<input type=""button" onclick="val();"
</form>
Thanks
We have a certain application installed on a single machine. I would like to enable/disable a button based on the existence of this application. Is there a way to check for its existence from asp.net?
the app is currently on an XP machine, but want to code for Win7 as well. VS2008 3.51. Asp.net
Ok, well on my site
http://www.easyasmp3.com/
for some reason the esnips (first) results arn't playing in internet explorer on the results page. When you click the little play button it's not doing anything. Works fine in firefox.
Could anyone help
Thanks!
I currently have a PHP form that uses AJAX to connect to MySQL and display records matching a user's selection (http://stackoverflow.com/questions/2593317/ajax-display-mysql-data-with-value-from-multiple-select-boxes)
As well as displaying the data, I also place an 'Edit' button next to each result which displays a form where the data can be edited. My problem is editing unique records since currently I only use the selected values for 'name' and 'age' to find the record. If two (or more) records share the same name and age, I am only able to edit the first result.
Hi,
I want to validate and commit the value entered in the DataGridViewCell ONLY when the user presses the 'Enter' key.
If the users presses any other key or mouse button (Arrow keys, Pressing a different cell using the mouse...), I want the behavior to be similar to the 'ESC' key: Move the focus to the new cell and revert the edited cell value to its previous value.
i have a gridview(GridView1) with a few Bound Fields
first one is Date (ActivityDate) from a table named "tblTime"
i have managed to add one extra colum (manually), that is not bound that shows dayInWeek value
according to the "ActivityDate" field programtically in CodeBehind
but when i enter into Edit Mode , all Bound fields are showing their values correctly
but the one column i have added manually will not show the value as it did in "select mode"(first mode b4 trying to edit)
while im not a great dibbagger i have manged to view the cell's value
(GridView1.Rows[e.NewEditIndex].Cells[1].Text) which does hold on to the day in week value
but it does not appear in gridview edit mode only
this is some of the code
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.Cells[0].Text = "?????"; //Activity Date (in hebrew)
e.Row.Cells[1].Text = "??? ?????"; //DayinWeek
e.Row.Cells[2].Text = "??????"; //ActivityType (work seek vacation) named Reason
e.Row.Cells[3].Text = "??? ?????"; //time finish (to Work)
e.Row.Cells[4].Text = "??? ?????"; //Time out (of work)
}
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (Convert.ToBoolean(ViewState["theSubIsclckd"]) == true) //if submit button clicked
{
try
{
string twekday1 = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "ActiveDate"));
twekday1 = twekday1.Remove(9, 11); //geting date only without the time- portion
string[] arymd = twekday1.Split('/'); // spliting [d m y] in order to make
int day = Convert.ToInt32(arymd[1]); // it into [m d y] ...also requierd
int month = Convert.ToInt32(arymd[0]); // when i update the table
int year = Convert.ToInt32(arymd[2]);
DateTime ILDateInit = new DateTime(year, month, day); //finally extracting Day
CultureInfo ILci = CultureInfo.CreateSpecificCulture("he-IL"); // in week
//from the converted activity date
string MyIL_DayInWeek = ILDateInit.ToString("dddd", ILci);
ViewState["MyIL_DayInWeek"] = MyIL_DayInWeek;
e.Row.Cells[1].Text = MyIL_DayInWeek;
string displayReason = DataBinder.Eval(e.Row.DataItem, "Reason").ToString();
e.Row.Cells[2].Text = displayReason;
}
catch (System.Exception excep)
{
Js.functions.but bb = new Js.functions.but();
bb.buttonName = "rex"; bb.documentwrite = true; bb.testCsVar = excep.ToString();
bb.f1(bb);
// this was supposed to throw exep in javaScript injected from code behid - alert
} // just in case..
}
}
so that works for the non edit period of time then when i hit the edit ... no day in week shows
THE aspX - after selcting date... name etc' , click on button to display gridview:
<asp:Button ID="TheSubB" runat="server" Text="???" onclick="TheSubB_Click" />
<asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" onrowediting="GridView1_RowEditing"
onrowcancelingedit="GridView1_RowCancelingEdit"
OnRowUpdating="GridView1_RowUpdating" BackColor="LightGoldenrodYellow"
BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black"
GridLines="None" AutoGenerateColumns="False" DataKeyNames="tId"
DataSourceID="SqlDataSource1"
style="z-index: 1; left: 0%; top: 0%; position: relative; width: 812px; height: 59px; font-family:Arial; text-align: center;"
AllowSorting="True" >
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<Columns>
<asp:BoundField DataField="ActiveDate" HeaderText="ActiveDate"
SortExpression="ActiveDate" ControlStyle-Width="70"
DataFormatString="{0:dd/MM/yyyy}" >
<ControlStyle Width="70px" />
</asp:BoundField>
<asp:TemplateField HeaderText="???.???.??"> <EditItemTemplate>
<asp:TextBox ID="dayinW_EditTB" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="dayInW_editLabel" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Reason" HeaderText="???? ?????"
SortExpression="Reason" ControlStyle-Width="50">
<ControlStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="TimeOut" HeaderText="TimeOut"
SortExpression="TimeOut" ControlStyle-Width="50" DataFormatString="{0:HH:mm}" >
<ControlStyle Width="50px"></ControlStyle>
</asp:BoundField>
<asp:BoundField DataField="TimeIn" HeaderText="TimeIn" SortExpression="TimeIn"
ControlStyle-Width="50" DataFormatString="{0:HH:mm}" >
<ControlStyle Width="50px"></ControlStyle>
</asp:BoundField>
<asp:TemplateField HeaderText="????" >
<EditItemTemplate>
<asp:ImageButton width="15" Height="15" ImageUrl="~/images/edit.png" runat="server" CausesValidation="True" CommandName="Update" Text="Update">
</asp:ImageButton>
<asp:ImageButton Width="15" Height="15" ImageUrl="images/cancel.png" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel">
</asp:ImageButton>
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton width="25" Height="15" ImageUrl="images/edit.png" ID="EditIB" runat="server" CausesValidation="False" CommandName="Edit" AlternateText="????"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="???">
<ItemTemplate>
<asp:ImageButton width="15" Height="15" ImageUrl="images/Delete.png" ID="DeleteIB" runat="server" CommandName="Delete" AlternateText="???" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
</asp:GridView>
I have a page where a text file is downloaded when I button is clicked. When that happens I would then like to direct the user to a confirmation/more details page.
I am using visual studio 2008 and it is VB.Net in 3.5
I have the following idea: when the user clicks on the more... button of a grid row, the row must expand into a detailed state that shows additional details for the current entry. I know that xamwebgrid provides an expand command, but isn't it just for hierarchical data purposes? How can I display some movie screenshots let's say, only in expanded view ?
I have used the folllowing steps to add classes to my build path still i am geting errors as import not resolved.I had followed the following steps.
Select Create New Folder and name it
TpmWebUIClasses.
Click the Advanced button and
select the Link to folder in the
file system check box.
Browse for to the folder where you
have copied the classes
Make sure the selected folder is
listed and then click OK.
How can i resolve the error?
*In eclipse plugin using actionSet Here blue icon for some code(using actionset) ,when i click on that it should prompt a window(some popup) which contains two or more link like web links, when i click 1st link it should perform the 1st action and window should disappear so on...Can anyone help me in this how to do that???
See the picture below for reference ..like this with ok button ok should perform the selected action plz help me to do this...??
I'm building an Android application where I want users to connect by their facebook details.
According to my design, when the application starts first time, I want to display a layout with LOGIN facebook button. After the user will perform login for the first time, I dont want to display this layout/activity again - when the application would be relanched, I want t display another (home) screen, and not the LOGIN one. How should I implement this functionality?
Thanks