SimpleModal Error box, Overlapping Form? - simplemodal

http://tinyurl.com/6ekkq8y
The error box keeps overlapping the form (press submit), or underlapping i should perhaps say. I've tried adding clear floats to no avail. Any ideas?

Your .contact-message div that contains .contact-error has a (inline) fixed height of 30px. If you remove that the error will push down the form rather than underlap.

Related

VBA MSHTML TextInput Click Failed

I've worked on multiple web-scraping projects using Excel VBA before, but I haven't encountered this problem before. I've been googling the issue for the past few hours, but I haven't found a solution yet.
Scenario:
My webpage consists of a list-box and a text box that acts as a filter/search. Unfortunately, I can't disclose the webpage information, but somewhere in the list box elements I saw the word "JQuery". After creating an HTMLInputElement, I set it to text box object and changed its value to "TEXT". I expected the list to get update, but nothing happened. I tried to use different approaches, but they all failed.
Text_Field.Focus
Text_Field.FireEvent "onclick"
Text_Field.Value = "TEXT"
Text_Field.Click
I managed to put the text in the text box, but the clicking part does not work. When I do it manually, as soon as I type the phrase into the text box, the list gets updated immediately. Any thoughts or suggestions?
I tried to simulate the "enter key" press, but it didn't work either.
Your help will be appreciated.
Best,
Arman
Event won't fire when you operate elements programmatically. you have to simulate the events too, using document.createEventObject/inputElement.fireEvent (IE8 or lower) or document.createEvent/inputElement.dispatchEvent (IE9+).
What event you need to fire depends on what the script is interested in (onkeypress, onblur, onpaste, etc).

RichTextBox Not Showing Formatting Until Text Is Selected

I have programmatically added a RichTextBox control to a form, but I seem to be experiencing a lot of issues when trying to format it. Please note that I have manually added the control through the GDI but also encounter the same problems.
Basically what is happening is that my control is drawn but uses the same initial background color as the form (even though I have manually specified a different color). The control also appears empty upon loading of the form, however, I can manually click the mouse the obtain a cursor where text 'should' be appearing.
If I click and drag inside the control, all of my text then appears with all of the formatting I defined. I have no idea what is causing this, but I have tried to Refesh the form, Refresh the Control, Update the control but nothing works. I have also tried using .Text, .SelectedText and .AppendText, as well as .SelectionColor and .SelectionBackColor.
My code is simply this:
Dim rtb As RichTextBox = New RichTextBox
rtb.Location = New Point(94, 229)
rtb.Size = New Size(608, 46)
rtb.BackColor = Color.FromArgb(38, 38, 38)
rtb.ForeColor = Color.LightGray
rtb.AppendText(_ticket.ticket_lastcomment)
Me.Controls.Add(rtb)
Yet it creates a new RichTextBox that is the same color as the form (Color.Control) and empty. No formatting is applied to the control until I highlight the text manually.
I have never come across this before.
UPDATE
After various trial and error and moving code, I have come to find that the piece of code preventing the drawing of the RichTextBox is this:
Me.animator = New FormAnimator(Me, FormAnimator.AnimationMethod.Centre, FormAnimator.AnimationDirection.Right, 200)
I apply a FormAnimator to the form to give it an effect upon opening. Removing this piece of code allows the RichTextBox to draw correctly.....strange.
Try this :)
rtb.rtf =_ticket.ticket_lastcomment
I know its a little late for this answer, but it may help future visitors.
All you have to do, is add first the RichTextBox to the form and then set the text:
Me.Controls.Add(rtb)
rtb.AppendText(_ticket.ticket_lastcomment)

Visual Basic element

I'm kind of new at visual basic. I just can't for the life of me figure out how to make this single element. a single line combo box with two scroll bars. For instance if I had the numbers 1-4 loaded into it, it would start displaying 1, I hit the down arrow it displays two etc, but if I hit the up arrow it goes down an index. I can make the combo box to only have one arrow, but I need the rest of the scroll bar. I tried a list box but can't do it where it displays one item at a time. Thanks!
I think you could you use NumericUpDown component.
You could set the increment on properties sectian and it has two arrows up and down.
I think what you're looking for is the NumericUpDown control.
You should go for a numeric control. You can set a min and max value and so on. For numeric options is the way to go.

How to place error message appropriately in ASP.NET MVC?

I have check boxes for working days if user does't select any one of the checkbox we need to show error message but after showing error message alignment is not correct as shon in the below picture.
You can move your check boxes validation to #Html.ValidationSummary()
(i.e. don't create #Html.ValidationMessageFor() for every checkbox, but display it in separate html div)

RDLC footer and dynamic visibility

tldr; Hide the left UI component on the footer and the right component moves over to the center.
I have a .rdlc file that I'm modifying in Visual Studio 2010 (and, sometimes, in Notepad++, as well). This particular report has a footer with two text boxes. The left side textbox contains information that is only sometimes relevant. When it is not relevant, it gets hidden. The right side textbox contains a page number.
So long as the left textbox is visible, everything is fine. However, when I hide the left textbox, the resulting output has the right textbox shifted over to the middle.
I don't want my page number shifted to the middle. How do I prevent this? I tried handling it with a table stretched all across the footer, but the footer apparently won't allow a table to be contained.
Apparently, nobody has any better ideas, so I'm going to say that my comment above is the answer:
"I ended up just creating a duplicate textbox to the one I was hiding and showing it when the original was hidden. This new one just contains a bunch of spaces rather than text. Kludgy, but it worked."
:)
I had the same issue. I just solved the issue be creating another Textbox and changed the hidden formula to vice versa.
Existing Text box (Moving) : =IIF(Parameters!PM_ReportType.Value = "ShowDiscrepancy",TRUE,FALSE)
Duplicate Text box Hide Formula = =IIF(Parameters!PM_ReportType.Value = "ShowDiscrepancy",FALSE,TRUE)
TB Moved to Center
Solved
Adjust the Hide formula